Range Sum Query Leetcode Solution 1980s