Not able To Pass All the test Cases

This the code i have implemented for the spiral print of the 2D Array


please check it passes only 3 test cases out of 4

hey @akash.91.yadav in the while condition there should be less than equal to sign but you have used only less than sign.
Rectified code