/**
 * This function returns a list of numbers from a given list that are greater than or equal to a target number.
 * The function uses a for loop to iterate over the numbersList and a combination of other functions to filter the results.
 *
 * @param numbersList the list of numbers to check
 * @param targetNumber the number to compare against
 * @return A list of numbers from numbersList that are greater than or equal to the target number
 */
fun getIntersection(numbersList: List<Int>, targetNumber: Int): List<Int> {

    // Initialize an empty list to store the resulting numbers
    val result = mutableListOf<Int>()
    
    // Iterate over the numbersList using a for loop
    for (number in numbersList) {
        // Check if the number is greater than or equal to the targetNumber
        if (number >= targetNumber) {
            // Append the number to the result list
            result.add(number)
        }
    }
    
    // Return the resulting list
    return result
}
/**
 * This function returns a list of numbers from a given list that are greater than or equal to a target number.
 * The function uses a for loop to iterate over the numbersList and a combination of other functions to filter the results.
 *
 * @param numbersList the list of numbers to check
 * @param targetNumber the number to compare against
 * @return A list of numbers from numbersList that are greater than or equal to the target number
 */
fun getIntersection(numbersList: List<Int>, targetNumber: Int): List<Int> {
/**
 * This function returns a list of numbers from a given list that are greater than or equal to a target number.
 * The function uses a for loop to iterate over the numbersList and a combination of other functions to filter the results.
 *
 * @param numbersList the list of numbers to check
 * @param targetNumber the number to compare against
 * @return A list of numbers from numbersList that are greater than or equal to the target number
 */
fun getIntersection(numbersList: List<Int>, targetNumber: Int): List<Int> {

    // Initialize an empty list to store the resulting numbers
    val result = mutableListOf<Int>()
    
    // Iterate over the numbersList using a for loop
    for (number in numbersList) {
        // Check if the number is greater than or equal to the targetNumber
        if (number >= targetNumber) {
            // Append the number to the result list
            result.add(number)
        }
    }
    
    // Return the resulting list
    return result
}