Range Sum Query 2D - Immutable
Imagine a large, rectangular plot of land divided into smaller squares, each representing a different type of crop. The value of each crop is represented by a numerical value. A farmer wants to calculate the total value of crops in a specific rectangular region of the plot. Given a 2D matrix representing the plot, design a system to efficiently calculate the total value of crops in any rectangular region.