Prateek Gupta's submission of Reservior | CodeChef