def solve(self, cipher):
        ret = self.rec(cipher)
        if ret:
            return "YES"
        else:
            return "NO"
recursive solution, brute force, starting from top left
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Hexagonal Grid.py/Solution.solve