Restore Sequence

please help me i am getting wrong answer while in IDE it is correct. here is the link