/**
 * Given two lists, find and return the intersection of the two lists.
 * The intersection is a new list that contains the common elements between the two lists.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The intersection of lst1 and lst2.
 */
fun intersectionExample(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()

    // Iterate over each element in lst1
    for (element in lst1) {
        // Check if the element exists in lst2 and is not already in the intersection list
        if (element in lst2 && element !in intersection) {
            intersection.add(element)
        }
    }

    return intersection
}
/**
 * Given two lists, find and return the intersection of the two lists.
 * The intersection is a new list that contains the common elements between the two lists.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The intersection of lst1 and lst2.
 */
fun intersectionExample(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * Given two lists, find and return the intersection of the two lists.
 * The intersection is a new list that contains the common elements between the two lists.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The intersection of lst1 and lst2.
 */
fun intersectionExample(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val intersection = mutableListOf<Any>()

    // Iterate over each element in lst1
    for (element in lst1) {
        // Check if the element exists in lst2 and is not already in the intersection list
        if (element in lst2 && element !in intersection) {
            intersection.add(element)
        }
    }

    return intersection
}