Range Sum Query Mutable Leetcode Contest Solution