/**
 * This function takes two lists as input and returns a new list
 * which contains the common elements between both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Initialize an empty list
    val commonElements = mutableListOf<Any>()

    // Iterate over every element in list1
    for (element in list1) {
        // Check if the element is present in list2
        if (element in list2) {
            // Append the element to the commonElements list
            commonElements.add(element)
        }
    }

    // Return the commonElements list
    return commonElements
}
/**
 * This function takes two lists as input and returns a new list
 * which contains the common elements between both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a new list
 * which contains the common elements between both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Initialize an empty list
    val commonElements = mutableListOf<Any>()

    // Iterate over every element in list1
    for (element in list1) {
        // Check if the element is present in list2
        if (element in list2) {
            // Append the element to the commonElements list
            commonElements.add(element)
        }
    }

    // Return the commonElements list
    return commonElements
}