each query stating you to find the sum of elements from l to r (inclusive) So, first we calculate the prefix sum (dp) of the array. The prefix sum of the index i is the sum of all elements indexed ...