You are given an array consisting of elements. Your task is to find the maximal subarray sum after applying the following operation exactly once:
Input format
Output format
Print lines. For each test case, print a single line representing the maximal subarray sum after applying the operation no more than once.
Constraints
Sum of over all test cases does not exceed
Initial array A=[-1,4,-1,2],if we choose this subarray [-1,4,-1,2] then modified array will be [-1,4,0,2] and the subarray with maximal sum is [-1,4,0,2] and sum is 4+0+2=6.