aman agarwal's submission of Mysterious Sequence | CodeChef