Lesson 7 - MaxDoubleSliceSum (from scratch)