my answer is wrong.
please help.
Rat in a maze. test cases not passing
Hello @ankitdelhi20,
I have modified your code:
Refer to the comments for better understanding.
Hope, this would help.
Give a like, if you are satisfied.
thanks! It worked.