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

    val commonElements = mutableListOf<Any>()

    for (item in list1) {
        if (item in list2) {
            commonElements.add(item)
        }
    }

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

    val commonElements = mutableListOf<Any>()

    for (item in list1) {
        if (item in list2) {
            commonElements.add(item)
        }
    }

    return commonElements
}