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