Range Sum Query Mutable Leetcode Solutions Python