My code not working

I tried as total possibilities possible and then subtracted the original sum from the sum i got from the array after placing the knight can you please look at my code .
It’s giving 0 every time

Hey


Look at this code with comments included, you’ll understand your mistake.
Basically, once you visit a cell, then visit all the cells that can be visited from this cell and also visit the cells that can be further visited from the next reachable cells.

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.