subhashis mollick's submission of Mysterious Sequence | CodeChef