Driver code
public static void Main ( String [ ] args ) { int [ , ] A = { { 1 , 1 , 0 } , { 0 , 0 , 1 } , { 0 , 1 , 0 } } ; int [ , ] B = { { 0 , 0 , 1 } , { 0 , 1 , 0 } , { 1 , 1 , 0 } } ; int N = A . GetLength ( 0 ) ; int M = 3 ; Console . Write ( minSwaps ( N , M , A , B ) ) ; } }