/**
 * Given two lists, return a new list containing the common elements between them.
 *
 * @param lst1 first list of elements
 * @param lst2 second list of elements
 * @return list containing the common elements between lst1 and lst2
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate over the elements in lst1
    for (element in lst1) {
        // Check if the element is present in lst2
        if (element in lst2) {
            // Check if the element is already present in the commonElements list
            if (element !in commonElements) {
                // Add the element to the commonElements list
                commonElements.add(element)
            }
        }
    }

    return commonElements
}
/**
 * Given two lists, return a new list containing the common elements between them.
 *
 * @param lst1 first list of elements
 * @param lst2 second list of elements
 * @return list containing the common elements between lst1 and lst2
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * Given two lists, return a new list containing the common elements between them.
 *
 * @param lst1 first list of elements
 * @param lst2 second list of elements
 * @return list containing the common elements between lst1 and lst2
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate over the elements in lst1
    for (element in lst1) {
        // Check if the element is present in lst2
        if (element in lst2) {
            // Check if the element is already present in the commonElements list
            if (element !in commonElements) {
                // Add the element to the commonElements list
                commonElements.add(element)
            }
        }
    }

    return commonElements
}