/**
 * Given two arrays, return a new array containing all elements from array1 that are not present in array2.
 *
 * @param array1 First array.
 * @param array2 Second array.
 * @return New array containing elements from array1 that are not present in array2.
 */
fun arrayDifference(array1: List<Any>, array2: List<Any>): List<Any> {

    val difference = mutableListOf<Any>()
    for (element in array1) {
        if (element !in array2) {
            difference.add(element)
        }
    }
    return difference
}
/**
 * Given two arrays, return a new array containing all elements from array1 that are not present in array2.
 *
 * @param array1 First array.
 * @param array2 Second array.
 * @return New array containing elements from array1 that are not present in array2.
 */
fun arrayDifference(array1: List<Any>, array2: List<Any>): List<Any> {
/**
 * Given two arrays, return a new array containing all elements from array1 that are not present in array2.
 *
 * @param array1 First array.
 * @param array2 Second array.
 * @return New array containing elements from array1 that are not present in array2.
 */
fun arrayDifference(array1: List<Any>, array2: List<Any>): List<Any> {

    val difference = mutableListOf<Any>()
    for (element in array1) {
        if (element !in array2) {
            difference.add(element)
        }
    }
    return difference
}