Write running_max(nums) returning, at each position, the largest value seen so far.
running_max(nums)
running_max([3, 1, 4, 1, 5]) → [3, 3, 4, 4, 5]
running_max([]) → []
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.