Akash Jain's submission of Periodic Sum | CodeChef