/**
 * Write a function that receives a list of positive integers and a divisor as arguments. The function should iterate through the list and remove any numbers that are multiples of the given divisor. The modified list should be returned.
 */
fun removeMultiples(numList: MutableList<Int>, divisor: Int): MutableList<Int> {

    for (i in numList.size - 1 downTo 0) {
        if (numList[i] % divisor == 0) {
            numList.removeAt(i)
        }
    }
    return numList
}
/**
 * Write a function that receives a list of positive integers and a divisor as arguments. The function should iterate through the list and remove any numbers that are multiples of the given divisor. The modified list should be returned.
 */
fun removeMultiples(numList: MutableList<Int>, divisor: Int): MutableList<Int> {
/**
 * Write a function that receives a list of positive integers and a divisor as arguments. The function should iterate through the list and remove any numbers that are multiples of the given divisor. The modified list should be returned.
 */
fun removeMultiples(numList: MutableList<Int>, divisor: Int): MutableList<Int> {

    for (i in numList.size - 1 downTo 0) {
        if (numList[i] % divisor == 0) {
            numList.removeAt(i)
        }
    }
    return numList
}