I am getting one wrong answer

@akash.91.yadav if you found the rightmove dont go for downmove just return true,if rightmove is false then check for downmove.

Can u please rectify the code. I updated but it doesn’t work

ok send me the code which you are submitting in the hackerblocks

i have updated it and commented it in your code look at this

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.