Rat chases its cheese

why 2 test cases are giving wrong answer
code : https://ide.codingblocks.com/s/139836

Hello @Chitra_Singla,

In this question, the mouse can also move up and left.

I have modified your code:

Hope, you are satisfied.
Give a like, if you are satisfied.

4 Likes