learner's submission of Hard Sequence | CodeChef