Range Sum Query Leetcode 303 Problem