/**
 * Given two lists, use the 'in' operator to find the intersection of the two lists.
 * Return a list containing the common elements found in both lists.
 */
fun checkIntersection(list1: List<Any>, list2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()

    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2 && element1 !in intersection) {
                intersection.add(element1)
            }
        }
    }

    return intersection
}
/**
 * Given two lists, use the 'in' operator to find the intersection of the two lists.
 * Return a list containing the common elements found in both lists.
 */
fun checkIntersection(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, use the 'in' operator to find the intersection of the two lists.
 * Return a list containing the common elements found in both lists.
 */
fun checkIntersection(list1: List<Any>, list2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()

    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2 && element1 !in intersection) {
                intersection.add(element1)
            }
        }
    }

    return intersection
}