XY's submission of Recover the Sequence | CodeChef