Ankur Kayal's submission of Hard Sequence | CodeChef