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

    val commonElements = mutableListOf<Any>()

    // TODO: Find the common elements between list1 and list2

    for (element in list1) {
        if (element in list2 && element !in commonElements) {
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * Given two lists, find the common elements and return them as a new list.
 *
 * @param list1 the first list of elements
 * @param list2 the second list of elements
 * @return A new list containing the common elements from list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the common elements and return them as a new list.
 *
 * @param list1 the first list of elements
 * @param list2 the second list of elements
 * @return A new list containing the common elements from list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // TODO: Find the common elements between list1 and list2

    for (element in list1) {
        if (element in list2 && element !in commonElements) {
            commonElements.add(element)
        }
    }

    return commonElements
}