Respected Sir, what is the final position the knight should be in

I am not able to understand what output I have to give.

@toshitvarshney11 hey ,Actually you have to explore all ositions where knight can move from starting block and have to maximise the number of steps,final position can be any block on board,terminating condition will be like if index is out of board or visited then stop the recursion.

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.