private int max(int input[],int low,int high){
        int max = Integer.MIN_VALUE;
        for(int i=low; i <=high; i++){
            if(max < input[i]){
                max = input[i];
            }
        }
        return max;
    }
http://www.geeksforgeeks.org/remove-minimum-elements-either-side-2min-max/
src/com/interview/dynamic/RemoveFromEndToMake2IntoMinGreaterThanMax.java