Function that maximize the minimum element of array after incrementing subarray of size S by 1 , M times
static int maximizeMin ( int A [ ] , int N , int S , int M ) { int minIndex , left , right , i , j ;