/**
 * Create a function that takes a list of numbers 'nums' and a divisor 'divisor'.
 * The function should remove any elements from 'nums' that are multiples of 'divisor' using a loop.
 * The modified 'nums' should be returned as the output.
 */
fun removeMultiples(nums: MutableList<Int>, divisor: Int): List<Int> {

    val iterator = nums.iterator()
    while (iterator.hasNext()) {
        val num = iterator.next()
        if (num % divisor == 0) {
            iterator.remove()
        }
    }
    return nums
}
/**
 * Create a function that takes a list of numbers 'nums' and a divisor 'divisor'.
 * The function should remove any elements from 'nums' that are multiples of 'divisor' using a loop.
 * The modified 'nums' should be returned as the output.
 */
fun removeMultiples(nums: MutableList<Int>, divisor: Int): List<Int> {
/**
 * Create a function that takes a list of numbers 'nums' and a divisor 'divisor'.
 * The function should remove any elements from 'nums' that are multiples of 'divisor' using a loop.
 * The modified 'nums' should be returned as the output.
 */
fun removeMultiples(nums: MutableList<Int>, divisor: Int): List<Int> {

    val iterator = nums.iterator()
    while (iterator.hasNext()) {
        val num = iterator.next()
        if (num % divisor == 0) {
            iterator.remove()
        }
    }
    return nums
}