Spiral Print AntiClockwise

my test cases are getting passed but I am getting run error.

@jack_dk when your are taking array input you have taken wrong column size ,you have taken n as col but it should be m.

i have changed that but still it is not working out

@jack_dk i have updated your code look at this. (https://ide.codingblocks.com/s/206465)