def sumRange(self, left: int, right: int) -> int:
    if (left > 0):
        return (self.nums[right] - self.nums[(left - 1)])
    else:
        return self.nums[right]
def sumRange(self, left: int, right: int) -> int:
    if (left > 0):
        return (self.nums[right] - self.nums[(left - 1)])
    else:
        return self.nums[right]