Solved MaxDoubleSliceSum in C