Driver program to test above function
public static void Main ( string [ ] args ) { int [ ] [ ] mat = new int [ ] [ ] { new int [ ] { 1 , 2 , 3 , 4 , 5 } , new int [ ] { 6 , 7 , 8 , 9 , 10 } , new int [ ] { 11 , 12 , 13 , 14 , 15 } , new int [ ] { 16 , 17 , 18 , 19 , 20 } } ; antiSpiralTraversal ( mat . Length - 1 , mat [ 0 ] . Length - 1 , mat ) ; } }