Rat in a maze problem recursion and backtracking is used

please tell the mistake in this code, cant pass any test case

hi @prajwalsingh226_b93d74431f6edd96,
buddy dont change the maze itself use other matrix for changing, also print -1 if path not found
refer

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.