def sumRange(self, i, j):
        """
        sum of elements nums[i..j], inclusive.
        :type i: int
        :type j: int
        :rtype: int
        """
        return self.res[j + 1] - self.res[i]

        # Your NumArray object will be instantiated and called as such:
        # numArray = NumArray(nums)
        # numArray.sumRange(0, 1)
        # numArray.sumRange(1, 2)

        sum of elements nums[i..j], inclusive.
        :type i: int
        :type j: int
        :rtype: int
        
python/303_Range_Sum_Query_Immutable.py