/**
 * This function takes two lists as input and returns the count of elements that are common to both lists.
 */
fun intersectionCount(lst1: List<Any>, lst2: List<Any>): Int {

    // Initialize an empty set to store the common elements
    val commonElements = mutableSetOf<Any>()

    // Loop through each element in the first list
    for (elem1 in lst1) {
        // Loop through each element in the second list
        for (elem2 in lst2) {
            // Check if the elements are equal and not already in the common set
            if (elem1 == elem2 && elem1 !in commonElements) {
                // Add the element to the common set
                commonElements.add(elem1)
            }
        }
    }

    // Return the count of common elements
    return commonElements.size
}
/**
 * This function takes two lists as input and returns the count of elements that are common to both lists.
 */
fun intersectionCount(lst1: List<Any>, lst2: List<Any>): Int {
/**
 * This function takes two lists as input and returns the count of elements that are common to both lists.
 */
fun intersectionCount(lst1: List<Any>, lst2: List<Any>): Int {

    // Initialize an empty set to store the common elements
    val commonElements = mutableSetOf<Any>()

    // Loop through each element in the first list
    for (elem1 in lst1) {
        // Loop through each element in the second list
        for (elem2 in lst2) {
            // Check if the elements are equal and not already in the common set
            if (elem1 == elem2 && elem1 !in commonElements) {
                // Add the element to the common set
                commonElements.add(elem1)
            }
        }
    }

    // Return the count of common elements
    return commonElements.size
}