/**
 * Given two lists, find the common elements in both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A list containing the common elements from both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}
/**
 * Given two lists, find the common elements in both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A list containing the common elements from both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the common elements in both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A list containing the common elements from both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}