def solve(self, cipher):
        a, b, x, y = cipher
        if self.gcd(a, b) == self.gcd(x, y):
            return "YES"
        else:
            return "NO"
Algorithm: math: https://hr-filepicker.s3.amazonaws.com/infinitum-jun14/editorials/2372-possible-path.pdf
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Possible Path.py/Solution.solve