please explain how to achieve the sum:
We have an integer array of size NxM.
We need to answer Q queries each of the form (x1, y1, x2, y2) and you should output the sum of the rectangular region described by the top left cell (x1,y1) and the bottom right cell described by (x2, y2). There may also be point updates.
Solve this using 2D fenwick tree, BIT[i][j] stores sum of the rectangular region (i - LSOne(i), j - LSOne(j), i ,j).
What is the optimal time complexity for answering each query?
