Mayank Gupta's submission of Sum Queries | CodeChef