Solution to MinAvgTwoSlice