collect_until_stop(nums, skip_multiple_of, stop_at) that iterates over nums, skipping (via continue) any value that is a multiple of skip_multiple_of, and stopping entirely (via break) the moment it encounters the value stop_at. Return the list of collected values (values that were kept before stopping).collect_until_stop([1, 2, 3, 4, 5, 6, 8], 3, 5)
[1, 2, 4]
3 is skipped as a multiple of 3; the loop stops when it reaches 5, so 6 and 8 are never examined.
Check the stop_at condition first with `break` before checking the skip condition.
Use `continue` to skip appending multiples without ending the loop.