Function to find maximum subarray sum possible after removing at most one subarray
public static void maximumSum ( int arr [ ] , int n ) { long [ ] preSum = new long [ n ] ; long sum = 0 ; long maxSum = 0 ;