/**
 * This exercise focuses on finding the count of elements that appear in both lists.
 *
 * Given two lists of items, items1 and items2, write a Kotlin function that returns the number of elements that appear in both lists.
 *
 * Hint: You can make use of the intersect() method to find the common elements between two lists.
 */
fun intersectionCount(items1: List<Any>, items2: List<Any>): Int {

    // Intersection of the two lists
    val intersection = items1.intersect(items2).toList()

    // Count the number of elements in the intersection
    val count = intersection.size

    return count
}
/**
 * This exercise focuses on finding the count of elements that appear in both lists.
 *
 * Given two lists of items, items1 and items2, write a Kotlin function that returns the number of elements that appear in both lists.
 *
 * Hint: You can make use of the intersect() method to find the common elements between two lists.
 */
fun intersectionCount(items1: List<Any>, items2: List<Any>): Int {
/**
 * This exercise focuses on finding the count of elements that appear in both lists.
 *
 * Given two lists of items, items1 and items2, write a Kotlin function that returns the number of elements that appear in both lists.
 *
 * Hint: You can make use of the intersect() method to find the common elements between two lists.
 */
fun intersectionCount(items1: List<Any>, items2: List<Any>): Int {

    // Intersection of the two lists
    val intersection = items1.intersect(items2).toList()

    // Count the number of elements in the intersection
    val count = intersection.size

    return count
}