Dinesh Goyal's submission of Sum Queries | CodeChef