Chaithanya Shyam's submission of Hard Sequence | CodeChef