/**
 * This function takes in two lists and returns a new list containing the common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    for (element1 in list1) {
        for (element2 in list2) { // nested for loop
            if (element1 == element2) { // conditional statement
                commonElements.add(element1)
            }
        }
    }
    return commonElements
}
/**
 * This function takes in two lists and returns a new list containing the common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns a new list containing the common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    for (element1 in list1) {
        for (element2 in list2) { // nested for loop
            if (element1 == element2) { // conditional statement
                commonElements.add(element1)
            }
        }
    }
    return commonElements
}