/**
 * This function finds the intersection of two lists where each element in the first list is greater than all the elements
 * in the second list.
 *
 * @param numbers1 The first list of numbers
 * @param numbers2 The second list of numbers
 * @return The intersection of the two lists
 *
 * Example:
 * findIntersection(listOf(5, 10, 15, 20), listOf(2, 4, 6, 8, 10, 12, 14, 16, 18, 20)) -> [10, 20]
 */
fun findIntersection(numbers1: List<Int>, numbers2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    // Iterate over each number in the first list
    for (number1 in numbers1) {
        var greaterThanAll = true

        // Check if the current number is greater than all numbers in the second list
        for (number2 in numbers2) {
            if (number1 <= number2) {
                greaterThanAll = false
                break
            }
        }

        // If the current number is greater than all numbers, add it to the intersection list
        if (greaterThanAll) {
            intersection.add(number1)
        }
    }

    return intersection
}
/**
 * This function finds the intersection of two lists where each element in the first list is greater than all the elements
 * in the second list.
 *
 * @param numbers1 The first list of numbers
 * @param numbers2 The second list of numbers
 * @return The intersection of the two lists
 *
 * Example:
 * findIntersection(listOf(5, 10, 15, 20), listOf(2, 4, 6, 8, 10, 12, 14, 16, 18, 20)) -> [10, 20]
 */
fun findIntersection(numbers1: List<Int>, numbers2: List<Int>): List<Int> {
/**
 * This function finds the intersection of two lists where each element in the first list is greater than all the elements
 * in the second list.
 *
 * @param numbers1 The first list of numbers
 * @param numbers2 The second list of numbers
 * @return The intersection of the two lists
 *
 * Example:
 * findIntersection(listOf(5, 10, 15, 20), listOf(2, 4, 6, 8, 10, 12, 14, 16, 18, 20)) -> [10, 20]
 */
fun findIntersection(numbers1: List<Int>, numbers2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    // Iterate over each number in the first list
    for (number1 in numbers1) {
        var greaterThanAll = true

        // Check if the current number is greater than all numbers in the second list
        for (number2 in numbers2) {
            if (number1 <= number2) {
                greaterThanAll = false
                break
            }
        }

        // If the current number is greater than all numbers, add it to the intersection list
        if (greaterThanAll) {
            intersection.add(number1)
        }
    }

    return intersection
}