Help me with the code in Rat chases its maze problem

My all the test cases are not running kindly help me in debugging the code.

@parmara8182 if path does not exist then you have to print “NO PATH FOUND” not “-1”.

@parmara8182 let me know if you are still facing any problem else mark this doubt as resolved.

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.