/**
 * Given an array of numbers and a list of elements to delete, remove all occurrences of those elements
 * from the array and return the modified array.
 */
fun deleteElements(arr: List<Int>, elementsToDelete: List<Int>): List<Int> {

    val modifiedArray = mutableListOf<Int>()
    for (num in arr) {
        if (num !in elementsToDelete) {
            modifiedArray.add(num)
        }
    }
    return modifiedArray
}
/**
 * Given an array of numbers and a list of elements to delete, remove all occurrences of those elements
 * from the array and return the modified array.
 */
fun deleteElements(arr: List<Int>, elementsToDelete: List<Int>): List<Int> {
/**
 * Given an array of numbers and a list of elements to delete, remove all occurrences of those elements
 * from the array and return the modified array.
 */
fun deleteElements(arr: List<Int>, elementsToDelete: List<Int>): List<Int> {

    val modifiedArray = mutableListOf<Int>()
    for (num in arr) {
        if (num !in elementsToDelete) {
            modifiedArray.add(num)
        }
    }
    return modifiedArray
}