not passing all test cases
Rat in a maze backtracking
make size of array according to constraints
Constraints
1<=N,M<=1000 GRID(i,j)=‘X’ or ‘O’
after making array of size 1002X1002 all testcases are passing
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course