LeetCode

Range Sum Query 2D - Immutable

Click here for an explanation.