/**
 * Given two lists, find the common elements between them.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements.
 */
fun getCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Intersection of the two lists using set intersection
    val commonElements = (list1.toSet() intersect list2.toSet()).toList()
    
    return commonElements
}
/**
 * Given two lists, find the common elements between them.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements.
 */
fun getCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the common elements between them.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements.
 */
fun getCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Intersection of the two lists using set intersection
    val commonElements = (list1.toSet() intersect list2.toSet()).toList()
    
    return commonElements
}