Given a Salesforce dashboard with n rows and m columns of opportunity data values, the following operation can be performed:
If the first (starting) opportunity value of a row is removed, the next value in that row becomes the starting value. A similar logic applies when removing the last value of the row.
Determine the maximum possible sum of opportunity values being removed after performing exactly k operations. Note that you need to maximize the sum of removed opportunity values not the remaining one's opportunity values.
Note: The sum of removed opportunity values is to be returned rather than the sum of the remaining opportunity values.
