Range Sum Query 2D - Immutable(LeetCode 304):

Problem