Here is the question link :-https://leetcode.com/problems/partition-array-for-maximum-sum/
here is the code in java
class Solution { public: int helper(i