coder_penguin's submission of Mysterious Sequence | CodeChef