Array Spiral Print Anticlockwise

Please look at this code .
What is the mistake in this code?