Range Sum Query - Immutable
Problem TC: O(n) for calculating the prefix sum and O(1) for getting the sum of the subarray in the...
Tags: prefixsum, leetcode, dsa