Funky chess board : approach

I have included all the cases to be included as given in the question.
I am still facing wrong answers.
Please look into it.

Please attach your online ide link for your code.

You only had a typo in your 4th function (the one with cr-1 and cc-2). Check its function call.

It’s still not passing all the test cases. Am I missing something ?

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.