Mental Model
A prefix sum array stores sums of elements from the start up to each position, so we can quickly find sums of any part of the original array.
Analogy: Imagine a row of buckets where each bucket holds the total water collected from the first bucket up to that bucket. To find water between two buckets, just subtract the totals.
Original array: [2] -> [4] -> [6] -> [8] -> [10] Prefix sums: [2] -> [6] -> [12] -> [20] -> [30]
