Problem 307 · Medium
Update elements and query sums efficiently using segment tree.
Open the interactive visualisation