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

    // Creating an empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterating over the elements in list1
    for (element in list1) {
        // Checking if the element is present in list2
        if (element in list2) {
            // Appending the common element to the commonElements list
            commonElements.add(element)
        }
    }

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

    // Creating an empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterating over the elements in list1
    for (element in list1) {
        // Checking if the element is present in list2
        if (element in list2) {
            // Appending the common element to the commonElements list
            commonElements.add(element)
        }
    }

    // Returning the list of common elements
    return commonElements
}