/**
 * This function takes two iterables as input and returns a list of elements that are present in both
 * iterables but are not equal to each other.
 *
 * @param iterable1 The first iterable.
 * @param iterable2 The second iterable.
 * @return A list of elements common to both iterables, but not equal to each other.
 */
fun intersectionNotEqual(iterable1: Iterable<Any>, iterable2: Iterable<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (item1 in iterable1) {
        for (item2 in iterable2) {
            if (item1 != item2 && item1 !in commonElements) {
                commonElements.add(item1)
            }
        }
    }

    return commonElements
}
/**
 * This function takes two iterables as input and returns a list of elements that are present in both
 * iterables but are not equal to each other.
 *
 * @param iterable1 The first iterable.
 * @param iterable2 The second iterable.
 * @return A list of elements common to both iterables, but not equal to each other.
 */
fun intersectionNotEqual(iterable1: Iterable<Any>, iterable2: Iterable<Any>): List<Any> {
/**
 * This function takes two iterables as input and returns a list of elements that are present in both
 * iterables but are not equal to each other.
 *
 * @param iterable1 The first iterable.
 * @param iterable2 The second iterable.
 * @return A list of elements common to both iterables, but not equal to each other.
 */
fun intersectionNotEqual(iterable1: Iterable<Any>, iterable2: Iterable<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (item1 in iterable1) {
        for (item2 in iterable2) {
            if (item1 != item2 && item1 !in commonElements) {
                commonElements.add(item1)
            }
        }
    }

    return commonElements
}