def solve(self, cipher):
        r, c = cipher
        r, c = r - 1, c - 1

        return r / 2 * 10 + r % 2 + c * 2
main solution function
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Strange Grid.py/Solution.solve