Test Case 2 failing

this is the link of my code for spiral array it is failing for 2nd test case even though I saw the test case input and output they were matching when put in custom input.

@adityamehrotra275,
Your code fails on this:

Input
1 1
1