/**
 * This function finds the common elements between two lists and returns a new list containing those elements.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = list1.filter { it in list2 }
    return commonElements
}
/**
 * This function finds the common elements between two lists and returns a new list containing those elements.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function finds the common elements between two lists and returns a new list containing those elements.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = list1.filter { it in list2 }
    return commonElements
}