/**
 * This function takes in two lists and returns the common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Convert the lists to sets
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the intersection of the sets
    val commonElements = set1.intersect(set2)

    // Convert the set back to a list and return it
    return commonElements.toList()
}
/**
 * This function takes in two lists and returns the common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns the common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Convert the lists to sets
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the intersection of the sets
    val commonElements = set1.intersect(set2)

    // Convert the set back to a list and return it
    return commonElements.toList()
}