/**
 * This function takes two lists as arguments and returns the number of common elements between them.
 */
fun countCommonElements(list1: List<Any>, list2: List<Any>): Int {

    var commonElements = 0

    // Check each element in list1
    for (elem1 in list1) {
        // Check if the element is present in list2
        if (elem1 in list2) {
            commonElements++
        }
    }

    return commonElements
}
/**
 * This function takes two lists as arguments and returns the number of common elements between them.
 */
fun countCommonElements(list1: List<Any>, list2: List<Any>): Int {
/**
 * This function takes two lists as arguments and returns the number of common elements between them.
 */
fun countCommonElements(list1: List<Any>, list2: List<Any>): Int {

    var commonElements = 0

    // Check each element in list1
    for (elem1 in list1) {
        // Check if the element is present in list2
        if (elem1 in list2) {
            commonElements++
        }
    }

    return commonElements
}