public static int maxGain(int[] a) {
    

}


This Coding Interview Question is available with an answer in the following programming languages :