Shivam Mahendru's submission of Magic sequence | CodeChef