Haider Ali's submission of Reservior | CodeChef