/**
 * This function takes two lists as input and returns a new list containing 
 * the common elements present in either of the lists.
 *
 * @param lst1 First list of elements
 * @param lst2 Second list of elements
 * @return New list containing the common elements
 *
 * Example:
 * getCommonValues(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // [3, 4]
 * getCommonValues(listOf("a", "b", "c"), listOf("c", "d", "e")) // ["c"]
 */
fun getCommonValues(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    for (item in lst1) {
        if (item in lst2 || item !in commonElements) {
            commonElements.add(item)
        }
    }
    return commonElements
}
/**
 * This function takes two lists as input and returns a new list containing 
 * the common elements present in either of the lists.
 *
 * @param lst1 First list of elements
 * @param lst2 Second list of elements
 * @return New list containing the common elements
 *
 * Example:
 * getCommonValues(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // [3, 4]
 * getCommonValues(listOf("a", "b", "c"), listOf("c", "d", "e")) // ["c"]
 */
fun getCommonValues(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a new list containing 
 * the common elements present in either of the lists.
 *
 * @param lst1 First list of elements
 * @param lst2 Second list of elements
 * @return New list containing the common elements
 *
 * Example:
 * getCommonValues(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // [3, 4]
 * getCommonValues(listOf("a", "b", "c"), listOf("c", "d", "e")) // ["c"]
 */
fun getCommonValues(lst1: List<Any>, lst2: List<Any>): List<Any> {

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