Rat in a mze question


passing only 2nd test case

if there is no sol then u have to print -1

there were small errors in your code
i have added comments in your code.
now it’s working perfectly fine

Thank you.working fine now for all the test cases