/**
 * This function takes two lists as input and returns a new list
 * containing the common elements between the two input lists.
 *
 * @param list1 First input list
 * @param list2 Second input list
 * @return A new list containing common elements
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Find the common elements between the lists
    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}
/**
 * This function takes two lists as input and returns a new list
 * containing the common elements between the two input lists.
 *
 * @param list1 First input list
 * @param list2 Second input list
 * @return A new list containing common elements
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a new list
 * containing the common elements between the two input lists.
 *
 * @param list1 First input list
 * @param list2 Second input list
 * @return A new list containing common elements
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Find the common elements between the lists
    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}