Tanmay Datta's submission of Restore Sequence | CodeChef