kapil garg's submission of Sum Queries | CodeChef