/**
 * Write a function that takes two lists as input and returns a new list containing common elements in both lists.
 *
 * @param lst1 The first list containing elements of any data type.
 * @param lst2 The second list containing elements of any data type.
 * @return A new list containing common elements between lst1 and lst2.
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonList = mutableListOf<Any>()
    for (item in lst1) {
        if (item in lst2 && item !in commonList) {
            commonList.add(item)
        }
    }
    return commonList
}
/**
 * Write a function that takes two lists as input and returns a new list containing common elements in both lists.
 *
 * @param lst1 The first list containing elements of any data type.
 * @param lst2 The second list containing elements of any data type.
 * @return A new list containing common elements between lst1 and lst2.
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * Write a function that takes two lists as input and returns a new list containing common elements in both lists.
 *
 * @param lst1 The first list containing elements of any data type.
 * @param lst2 The second list containing elements of any data type.
 * @return A new list containing common elements between lst1 and lst2.
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonList = mutableListOf<Any>()
    for (item in lst1) {
        if (item in lst2 && item !in commonList) {
            commonList.add(item)
        }
    }
    return commonList
}