manas agrawal's submission of Hard Sequence | CodeChef