Function that returns the maximum sub - array sum after removing an element from the same sub - array
function maximizeSum ( $ a , $ n ) { $ cnt = 0 ; $ mini = PHP_INT_MAX ; $ minSubarray = PHP_INT_MAX ;