Test cases are not passing after several attempts

Spiral Anticlockwise array print :
I’ve checked my code at least 10 times and made all the required optimizations even my provided input test case is giving correct output I also changed the input output was coming absolutely right…I’ve been struck on this problem since 10-12 hours…Please help.

hi @rohankashyap834 print ", " not " "
and print “END” at the end

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.