Run error spiral print

https://hack.codingblocks.com/contests/c/512/440

https://ide.codingblocks.com/s/35422

showing runerror

Please read the constraints carefully given in the problem. M and N can be any number <1000 while you are taking the array of max size 10 only.