Devesh Agarwal's submission of Mysterious Sequence | CodeChef