Utkarsh Garg's submission of Reservior | CodeChef