/**
 * This exercise aims to find the missing elements in arr1 that are not present in arr2 using a for loop and the 'not in' operator.
 * Given two arrays arr1 and arr2, the goal is to determine the elements in arr1 that are not present in arr2 and return them in a new array.
 *
 * @param arr1 A list of elements.
 * @param arr2 A list of elements.
 * @return A list of elements that are present in arr1 but not in arr2.
 */
fun missingElements(arr1: List<Any>, arr2: List<Any>): List<Any> {

    val missing = mutableListOf<Any>()
    
    for (element in arr1) {
        if (element !in arr2) {
            // missing.add(element)
        }
    }
    
    return missing
}
/**
 * This exercise aims to find the missing elements in arr1 that are not present in arr2 using a for loop and the 'not in' operator.
 * Given two arrays arr1 and arr2, the goal is to determine the elements in arr1 that are not present in arr2 and return them in a new array.
 *
 * @param arr1 A list of elements.
 * @param arr2 A list of elements.
 * @return A list of elements that are present in arr1 but not in arr2.
 */
fun missingElements(arr1: List<Any>, arr2: List<Any>): List<Any> {
/**
 * This exercise aims to find the missing elements in arr1 that are not present in arr2 using a for loop and the 'not in' operator.
 * Given two arrays arr1 and arr2, the goal is to determine the elements in arr1 that are not present in arr2 and return them in a new array.
 *
 * @param arr1 A list of elements.
 * @param arr2 A list of elements.
 * @return A list of elements that are present in arr1 but not in arr2.
 */
fun missingElements(arr1: List<Any>, arr2: List<Any>): List<Any> {

    val missing = mutableListOf<Any>()
    
    for (element in arr1) {
        if (element !in arr2) {
            // missing.add(element)
        }
    }
    
    return missing
}