Solution for MinAvgTwoSlice