Devansh Bajpai's submission of Reservior | CodeChef