rajitha's submission of Hard Sequence | CodeChef