Master range queries and point updates using Fenwick Trees. Learn the optimal algorithms for calculating prefix sums iteratively in O(log n) time.