Getting wrong answer in Rat in a maze problem

My solution is only passing 4 test cases can you please check my code and correct me where i am wrong

This is my code https://ide.codingblocks.com/s/646754

hi @swaroop_stellar
Refer this -->
https://ide.codingblocks.com/s/646744?_ga=2.81839186.536018199.1638469937-62531247.1625483271

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.