Driver code
public static void main ( String arg [ ] ) { int arr [ ] = { - 2 , - 3 , 4 , - 1 , - 2 , 1 , 5 , - 3 } ; int n = arr . length ; System . out . print ( maxSumSubarrayRemovingOneEle ( arr , n ) ) ; } }