/**
 * Given two lists, find and return a new list containing the common elements between them.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return A new list with the common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Find the common elements using filter function
    val commonElements = list1.filter { it in list2 }
    return commonElements
}
/**
 * Given two lists, find and return a new list containing the common elements between them.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return A new list with the common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find and return a new list containing the common elements between them.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return A new list with the common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Find the common elements using filter function
    val commonElements = list1.filter { it in list2 }
    return commonElements
}