/**
 * This function takes in two lists and returns a new list containing the elements that are not equal between the two lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements that are not equal between the two input lists.
 */
fun findNotEqualElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val notEqualElements = mutableListOf<Any>()

    // Iterate over each element in list1
    for (element in list1) {
        // Check if the element is not present in list2
        if (element !in list2) {
            notEqualElements.add(element)
        }
    }

    // Iterate over each element in list2
    for (element in list2) {
        // Check if the element is not present in list1
        if (element !in list1) {
            notEqualElements.add(element)
        }
    }

    return notEqualElements
}
/**
 * This function takes in two lists and returns a new list containing the elements that are not equal between the two lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements that are not equal between the two input lists.
 */
fun findNotEqualElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns a new list containing the elements that are not equal between the two lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the elements that are not equal between the two input lists.
 */
fun findNotEqualElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val notEqualElements = mutableListOf<Any>()

    // Iterate over each element in list1
    for (element in list1) {
        // Check if the element is not present in list2
        if (element !in list2) {
            notEqualElements.add(element)
        }
    }

    // Iterate over each element in list2
    for (element in list2) {
        // Check if the element is not present in list1
        if (element !in list1) {
            notEqualElements.add(element)
        }
    }

    return notEqualElements
}