Driver Code
public static void main ( String [ ] args ) { int [ ] arr = new int [ ] { 1 , 2 , 4 , 6 } ; int [ ] brr = new int [ ] { 7 } ; int N = arr . length ; int M = brr . length ; System . out . println ( maxCntRemovedfromArray ( arr , N , brr , M ) ) ; } }