Dinesh Goyal's submission of Minimum Maximum | CodeChef