Arrays-Spiral Print Clockwise

Coding Blocks IDE
one test case is failing, can anyone tell where is the problem