Array spiral print anticlockwise


It’s failing one test case and passing all other.
Can you help me with the problem here?