al_jabr's submission of Restore Sequence | CodeChef