LeetCode

Range Sum Query - Immutable

Click here for an explanation.