Range Sum Query Leetcode Solution