/**
 * Given two lists of data, find the elements that are present in both lists
 * but not equal to each other.
 *
 * @param data_list1 The first list of data.
 * @param data_list2 The second list of data.
 * @return A list of elements that are present in both lists but not equal to each other.
 */
fun intersectionNotEqual(dataList1: List<Any>, dataList2: List<Any>): List<Any> {

    val result = mutableListOf<Any>()

    for (element1 in dataList1) {
        for (element2 in dataList2) {
            if (element1 in dataList2 && element1 != element2) {
                result.add(element1)
            }
        }
    }

    return result
}
/**
 * Given two lists of data, find the elements that are present in both lists
 * but not equal to each other.
 *
 * @param data_list1 The first list of data.
 * @param data_list2 The second list of data.
 * @return A list of elements that are present in both lists but not equal to each other.
 */
fun intersectionNotEqual(dataList1: List<Any>, dataList2: List<Any>): List<Any> {
/**
 * Given two lists of data, find the elements that are present in both lists
 * but not equal to each other.
 *
 * @param data_list1 The first list of data.
 * @param data_list2 The second list of data.
 * @return A list of elements that are present in both lists but not equal to each other.
 */
fun intersectionNotEqual(dataList1: List<Any>, dataList2: List<Any>): List<Any> {

    val result = mutableListOf<Any>()

    for (element1 in dataList1) {
        for (element2 in dataList2) {
            if (element1 in dataList2 && element1 != element2) {
                result.add(element1)
            }
        }
    }

    return result
}