Leetcode Range Sum Query Leetcode Solutions Extensions