/**
 * This function takes in two lists as input and returns a new list that contains the common elements between the two input lists.
 * Use the ternary operator with multiple conditions to solve this exercise.
 */
fun getCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (elem1 in lst1) {
        for (elem2 in lst2) {
            if (elem1 == elem2 && elem1 !in commonElements) {
                commonElements.add(elem1)
            }
        }
    }

    return commonElements
}
/**
 * This function takes in two lists as input and returns a new list that contains the common elements between the two input lists.
 * Use the ternary operator with multiple conditions to solve this exercise.
 */
fun getCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * This function takes in two lists as input and returns a new list that contains the common elements between the two input lists.
 * Use the ternary operator with multiple conditions to solve this exercise.
 */
fun getCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (elem1 in lst1) {
        for (elem2 in lst2) {
            if (elem1 == elem2 && elem1 !in commonElements) {
                commonElements.add(elem1)
            }
        }
    }

    return commonElements
}