/**
 * Given two lists, find the intersection of both lists using a combination of a for loop and list comprehension.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The intersection of both lists.
 */
fun combineLists(lst1: List<Any>, lst2: List<Any>): List<Any> {

    // Initialize an empty list to store the intersection elements
    val intersection = mutableListOf<Any>()

    // Loop through each element in the first list
    for (elem in lst1) {
        // Use list comprehension to check if the element is in the second list
        if (elem in lst2) {
            // Add the element to the intersection list
            intersection.add(elem)
        }
    }

    return intersection
}
/**
 * Given two lists, find the intersection of both lists using a combination of a for loop and list comprehension.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The intersection of both lists.
 */
fun combineLists(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * Given two lists, find the intersection of both lists using a combination of a for loop and list comprehension.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The intersection of both lists.
 */
fun combineLists(lst1: List<Any>, lst2: List<Any>): List<Any> {

    // Initialize an empty list to store the intersection elements
    val intersection = mutableListOf<Any>()

    // Loop through each element in the first list
    for (elem in lst1) {
        // Use list comprehension to check if the element is in the second list
        if (elem in lst2) {
            // Add the element to the intersection list
            intersection.add(elem)
        }
    }

    return intersection
}