Mental Model
A prefix sum array stores the running total of elements up to each position, so you can quickly find sums of any part of the original array.
Analogy: Imagine a row of buckets where each bucket holds the total amount of water collected from the first bucket up to that bucket. To find how much water is between two buckets, you just subtract the totals.
Original array: [2] -> [4] -> [5] -> [7] -> [3] Prefix sums: [2] -> [6] -> [11] -> [18] -> [21]
