You are given integers arrays and of size , for every index , you could either add to or subtract from , you are only allowed to do atmost add operations. For a subarray of size print the largest possible sum after doing the above operations.
Input format
Output format
Constraints
The sum of over all test case does not exceed
Here we can use add operation on 4 and 5, and subtract the rest of them.