def __init__(self, nums: List[int]):
    self.nums = []
    currentSum = 0
    for num in nums:
        currentSum += num
        self.nums.append(currentSum)
def __init__(self, nums: List[int]):
    self.nums = []
    currentSum = 0
    for num in nums:
        currentSum += num
        self.nums.append(currentSum)