/**
 * This exercise requires removing specific elements from a list and multiplying the remaining numbers together.
 *
 * @param numbers A list of numbers.
 * @param removeElements A list of elements to be removed from the original list.
 * @return The multiplication result of the remaining numbers after removing specified elements.
 */
fun removeAndMultiply(numbers: MutableList<Int>, removeElements: List<Int>): Int {

    // Remove specified elements from the list
    for (element in removeElements) {
        if (element in numbers) {
            numbers.remove(element)
        }
    }

    // Initialize the result variable with the first number in the list
    var result = numbers[0]

    // Multiply the remaining numbers together
    for (index in 1 until numbers.size) {
        result *= numbers[index]
    }

    return result
}

// Example usage
/**
 * This exercise requires removing specific elements from a list and multiplying the remaining numbers together.
 *
 * @param numbers A list of numbers.
 * @param removeElements A list of elements to be removed from the original list.
 * @return The multiplication result of the remaining numbers after removing specified elements.
 */
fun removeAndMultiply(numbers: MutableList<Int>, removeElements: List<Int>): Int {
/**
 * This exercise requires removing specific elements from a list and multiplying the remaining numbers together.
 *
 * @param numbers A list of numbers.
 * @param removeElements A list of elements to be removed from the original list.
 * @return The multiplication result of the remaining numbers after removing specified elements.
 */
fun removeAndMultiply(numbers: MutableList<Int>, removeElements: List<Int>): Int {

    // Remove specified elements from the list
    for (element in removeElements) {
        if (element in numbers) {
            numbers.remove(element)
        }
    }

    // Initialize the result variable with the first number in the list
    var result = numbers[0]

    // Multiply the remaining numbers together
    for (index in 1 until numbers.size) {
        result *= numbers[index]
    }

    return result
}

// Example usage