Dinesh Goyal's submission of Mysterious Sequence | CodeChef