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

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

    var i = 0
    while (i < list1.size) {
        if (list1[i] in list2) {
            commonElements.add(list1[i])
        }
        i++
    }

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

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

    var i = 0
    while (i < list1.size) {
        if (list1[i] in list2) {
            commonElements.add(list1[i])
        }
        i++
    }

    return commonElements
}