Gurpreet Singh's submission of Minimum Maximum | CodeChef