Anders Kaseorg's submission of Maximum and Minimum | CodeChef