Driver code
public static void main ( String [ ] args ) { int n = 2 , m = 2 ; int a [ ] [ ] = { { 2 , 10 } , { 11 , 5 } } ; int b [ ] [ ] = { { 9 , 4 } , { 3 , 12 } } ; System . out . print ( Check ( a , b , n , m ) ) ; } }