MaxDoubleSliceSum
MaxProfit and MaxSliceSum