Abhishek Shrivastav's submission of Restore Sequence | CodeChef