Arrays-Spiral Print Clockwise

Hi @vikashkmr519,
There is one small error … Where you have done right=arr.length-1 you should have done right=arr[0].length-1 … Check comment in the code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.