def solve_TLE(self, cipher):
        """
        O(N^2)

        :param cipher: the cipher
        """
        A = map(int, list(cipher))
        f = A[0]
        num = A[0]
        sig = 1
        for i in xrange(1, len(A)):
            num = 10 * num + A[i]
            sig *= 10

            temp = num
            temp_sig = sig
            while 1 >= temp_sig:
                f += temp
                f %= MOD

                temp %= temp_sig
                temp_sig /= 10

        return int(f)
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Sam and sub-strings.py/Solution.solve_TLE/swapped operands of `>=`