Range Sum Query Immutable Leetcode Python Interview