Function to return the minimum number of elements that must be removed to make the given array good
static int minimumRemoval ( int n , int a [ ] ) { Map < Integer , Integer > c = new HashMap < > ( ) ;