Write cumulative(nums) returning the running total using NumPy.
cumulative(nums)
cumulative([1, 2, 3]) → [1, 3, 6]
cumulative([5]) → [5]
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.