Rat in a maze (no output)

this code is not giving the out put , what is the problem plss tell me

@vikashkmr519,
Your input format needs to change. After that please do a dry run of your code with sample test case and try to find the mistake. Rebuild the logic.

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.