Zhang Yide's submission of Reservior | CodeChef