• + 0 comments

    Solution from my side for this problem

    def catAndMouse(x, y, z):
        a = abs(x-z)
        b = abs(y-z)
        if(a == b):
            return 'Mouse C'
        elif(a<b):
            return 'Cat A'
        elif(a>b):
            return 'Cat B'