Write sum_until_negative(nums) that adds numbers from the start until it meets a negative number (which is not added).
sum_until_negative([3, 4, -1, 10]) → 7
sum_until_negative([]) → 0
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.