LeetCode
Range Sum Query - Mutable
Click
here
for an explanation.