def solve(self, cipher):
        """
        Algorithm:
        bucket, O(N). Non-brainer
        :param cipher: the cipher
        """
        bucket = [False for _ in xrange(26)]
        for char in cipher:
            char = char.lower()
            ind = ord(char) - ord('a')
            try:
                bucket[ind] = True
            except IndexError:
                pass

        is_pangram = all(bucket)
        if is_pangram:
            return "pangram"
        else:
            return "not pangram"
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Pangrams.py/Solution.solve/original