/**
 * This function compares two lists and returns the number of elements
 * that are common in both lists.
 *
 * @param list1 The first list for comparison.
 * @param list2 The second list for comparison.
 * @return The count of common elements in both lists.
 */
fun compareLists(list1: List<Any>, list2: List<Any>): Int {

    var commonCount = 0
    for (element in list1) {
        if (element in list2) {
            commonCount++
        }
    }
    return commonCount
}
/**
 * This function compares two lists and returns the number of elements
 * that are common in both lists.
 *
 * @param list1 The first list for comparison.
 * @param list2 The second list for comparison.
 * @return The count of common elements in both lists.
 */
fun compareLists(list1: List<Any>, list2: List<Any>): Int {
/**
 * This function compares two lists and returns the number of elements
 * that are common in both lists.
 *
 * @param list1 The first list for comparison.
 * @param list2 The second list for comparison.
 * @return The count of common elements in both lists.
 */
fun compareLists(list1: List<Any>, list2: List<Any>): Int {

    var commonCount = 0
    for (element in list1) {
        if (element in list2) {
            commonCount++
        }
    }
    return commonCount
}