Karan Aggarwal's submission of Arithmancy | CodeChef