/**
 * Given two lists, find the common elements between them using the '!' operator
 * and assign the result to a new list.
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterate over each element in list1
    for (element in list1) {
        // Check if the element is not in list2
        if (element !in list2) {
            // Assign the element to a new variable named 'x'
            val x = element

            // Append the element to the commonElements list
            commonElements.add(x)
        }
    }

    // Return the list of common elements
    return commonElements
}
/**
 * Given two lists, find the common elements between them using the '!' operator
 * and assign the result to a new list.
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the common elements between them using the '!' operator
 * and assign the result to a new list.
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterate over each element in list1
    for (element in list1) {
        // Check if the element is not in list2
        if (element !in list2) {
            // Assign the element to a new variable named 'x'
            val x = element

            // Append the element to the commonElements list
            commonElements.add(x)
        }
    }

    // Return the list of common elements
    return commonElements
}