Devendra Agarwal's submission of The Sequence | CodeChef