Utility function to print the contents of a 2 - D array
static void printMatrix ( int [ , ] sol , int N ) { for ( int i = 0 ; i < N ; i ++ ) { for ( int j = 0 ; j < N ; j ++ ) Console . Write ( sol [ i , j ] + " ▁ " ) ; Console . WriteLine ( ) ; } }