Sayan Kashyapi's submission of Restore Sequence | CodeChef