Raj Jain's submission of Sum Queries | CodeChef