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

    // Use the filter function to find the common elements
    return list1.filter { element -> list2.contains(element) }
}
/**
 * Given two lists, find and return the common elements between them.
 *
 * @param list1 First list containing elements
 * @param list2 Second list containing elements
 * @return A list containing the common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find and return the common elements between them.
 *
 * @param list1 First list containing elements
 * @param list2 Second list containing elements
 * @return A list containing the common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Use the filter function to find the common elements
    return list1.filter { element -> list2.contains(element) }
}