PEAK6 interview question

Something about finding min max so far