Mayank Tuteja's submission of Sequence | CodeChef