Abhijeet Krishnan's submission of Hard Sequence | CodeChef