/**
 * Given two lists of integers, return a new list containing the intersection of the two lists.
 *
 * @param lst1 First list of integers
 * @param lst2 Second list of integers
 * @return A list containing the intersection of lst1 and lst2
 *
 * Example:
 * findIntersection(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8)) // [4, 5]
 * findIntersection(listOf(1, 2, 3), listOf(4, 5, 6)) // []
 */
fun findIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()
    for (num1 in lst1) {
        for (num2 in lst2) {
            if (num1 == num2) {
                intersection.add(num1)
            }
        }
    }
    return intersection
}
/**
 * Given two lists of integers, return a new list containing the intersection of the two lists.
 *
 * @param lst1 First list of integers
 * @param lst2 Second list of integers
 * @return A list containing the intersection of lst1 and lst2
 *
 * Example:
 * findIntersection(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8)) // [4, 5]
 * findIntersection(listOf(1, 2, 3), listOf(4, 5, 6)) // []
 */
fun findIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * Given two lists of integers, return a new list containing the intersection of the two lists.
 *
 * @param lst1 First list of integers
 * @param lst2 Second list of integers
 * @return A list containing the intersection of lst1 and lst2
 *
 * Example:
 * findIntersection(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8)) // [4, 5]
 * findIntersection(listOf(1, 2, 3), listOf(4, 5, 6)) // []
 */
fun findIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()
    for (num1 in lst1) {
        for (num2 in lst2) {
            if (num1 == num2) {
                intersection.add(num1)
            }
        }
    }
    return intersection
}