the solution of the MaxSliceSum