Spiral print of the 2 d array in the anticlockwise direction

i am getting wrong answer after submission even it give the correct answer :

I have edited your code… Try to submit it now…