Arrays-Spiral Print Anticlockwise 1


my code is not giving correct output .
4 4
11 12 13 14
21 22 23 24
31 32 33 34
41 42 43 44