Karthik's submission of Reservior | CodeChef