/**
 * This function takes a list of numbers and a target number as arguments.
 * It removes all elements from the list that are equal to the target number,
 * and multiplies the remaining elements by the target number. The modified list
 * is returned as the output.
 */
fun removeAndMultiply(numbers: MutableList<Int>, target: Int): List<Int> {

    // Remove all occurrences of the target number from the input list
    numbers.removeAll { it == target }

    // Multiply the remaining elements by the target number
    for (i in numbers.indices) {
        numbers[i] *= target
    }

    return numbers
}
/**
 * This function takes a list of numbers and a target number as arguments.
 * It removes all elements from the list that are equal to the target number,
 * and multiplies the remaining elements by the target number. The modified list
 * is returned as the output.
 */
fun removeAndMultiply(numbers: MutableList<Int>, target: Int): List<Int> {
/**
 * This function takes a list of numbers and a target number as arguments.
 * It removes all elements from the list that are equal to the target number,
 * and multiplies the remaining elements by the target number. The modified list
 * is returned as the output.
 */
fun removeAndMultiply(numbers: MutableList<Int>, target: Int): List<Int> {

    // Remove all occurrences of the target number from the input list
    numbers.removeAll { it == target }

    // Multiply the remaining elements by the target number
    for (i in numbers.indices) {
        numbers[i] *= target
    }

    return numbers
}