MaxSliceSum

Find a maximum sum of a compact subsequence of array elements.