Correctness of Knight Move

CodeChef: Practical coding for everyone I am getting WA.missing some corner cases but cant find out
so plz help me .qstn KNIGHTMV Problem - CodeChef

Thank you