Funky Chess Board - doubt

what is wrong with this code ? 1st and 3rd test-case are
failing ?https://ide.codingblocks.com/s/87197

Anunay u have to find an optimized way for moving of knight such that the unvisited block is minimum u r just moving it

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.