def solve(self, cipher):
        """
        algorithm: circular: original_index = (i-k)%N
        :param cipher: the cipher
        """
        N, K, Q, A, q = cipher

        result = []
        for i in q:
            result.append(A[(K - i) % N])

        return "\n".join(map(str, result))
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Sherlock and Watson.py/Solution.solve/swapped operands of `-`