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

    val commonElements = mutableListOf<Any>() // create a mutable list to store the common elements

    // iterate over each element in list1
    for (element in list1) {
        // check if the element is present in list2
        if (element in list2) {
            // add the element to the commonElements list
            commonElements.add(element)
        }
    }

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

    val commonElements = mutableListOf<Any>() // create a mutable list to store the common elements

    // iterate over each element in list1
    for (element in list1) {
        // check if the element is present in list2
        if (element in list2) {
            // add the element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}