Difficulty faced in recursive case

I wasnt able to get the approach even after watching similar problem that was discussed in the lecture.So referred the solution.So in the lecture,the recursive call was both for right side movement and downside movement and then backtracking was done.But in the soln provided for this ques,we are going for the right side and if it is not possible then only we will move down.Am I thinking correctly?

hi @ajaypaldhillon2002 yes ,
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.