Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 1 , 2 , 3 } ; int N = arr . length ; int brr [ ] = { 1 , 2 } ; int M = brr . length ; System . out . print ( cntPairsInTwoArray ( arr , brr , N , M ) ) ; } }