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

    val commonElements = mutableListOf<Any>()
    var i = 0
    while (i < list1.size) {
        var j = 0
        while (j < list2.size) {
            if (list1[i] == list2[j]) {
                commonElements.add(list1[i])
                break
            }
            j++
        }
        i++
    }
    return commonElements
}
/**
 * This function takes two lists as input and returns a list of common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a list of common elements between them.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    var i = 0
    while (i < list1.size) {
        var j = 0
        while (j < list2.size) {
            if (list1[i] == list2[j]) {
                commonElements.add(list1[i])
                break
            }
            j++
        }
        i++
    }
    return commonElements
}