/**
 * The function finds the intersection of two lists using a for loop.
 *
 * @param lst1 First list.
 * @param lst2 Second list.
 * @return List containing the common elements between lst1 and lst2.
 */
fun findIntersection(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val result = mutableListOf<Any>()

    for (item1 in lst1) {
        for (item2 in lst2) {
            if (item1 == item2 && item1 !in result) {
                result.add(item1)
            }
        }
    }

    return result
}
/**
 * The function finds the intersection of two lists using a for loop.
 *
 * @param lst1 First list.
 * @param lst2 Second list.
 * @return List containing the common elements between lst1 and lst2.
 */
fun findIntersection(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * The function finds the intersection of two lists using a for loop.
 *
 * @param lst1 First list.
 * @param lst2 Second list.
 * @return List containing the common elements between lst1 and lst2.
 */
fun findIntersection(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val result = mutableListOf<Any>()

    for (item1 in lst1) {
        for (item2 in lst2) {
            if (item1 == item2 && item1 !in result) {
                result.add(item1)
            }
        }
    }

    return result
}