avinash soni's submission of Periodic Sum | CodeChef