Move All X Recusrion

Why is my code not passing all test cases?

Hi @akankshaanand99,
pls try submitting ur code again on hacker blocks .
Ur code is fine.
If u still get wrong answer, pls post it here.

It was showing wrong answer on all test cases earlier. But now it’s working fine.

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.