/**
 * This function takes a list of negative integers and a number as input.
 * It returns a new list containing only those negative integers from the original list
 * that are greater than or equal to the provided number.
 *
 * @param list1 A list of negative integers.
 * @param num A number to compare the negative integers with.
 * @return A list of negative integers from the original list that are greater than or equal to the provided number.
 */
fun negativeIntegersGreaterOrEqual(list1: List<Int>, num: Int): List<Int> {

    val qualifyingIntegers = mutableListOf<Int>()

    for (integer in list1) {
        if (integer < 0 && integer >= num) {
            qualifyingIntegers.add(integer)
        }
    }

    return qualifyingIntegers
}
/**
 * This function takes a list of negative integers and a number as input.
 * It returns a new list containing only those negative integers from the original list
 * that are greater than or equal to the provided number.
 *
 * @param list1 A list of negative integers.
 * @param num A number to compare the negative integers with.
 * @return A list of negative integers from the original list that are greater than or equal to the provided number.
 */
fun negativeIntegersGreaterOrEqual(list1: List<Int>, num: Int): List<Int> {
/**
 * This function takes a list of negative integers and a number as input.
 * It returns a new list containing only those negative integers from the original list
 * that are greater than or equal to the provided number.
 *
 * @param list1 A list of negative integers.
 * @param num A number to compare the negative integers with.
 * @return A list of negative integers from the original list that are greater than or equal to the provided number.
 */
fun negativeIntegersGreaterOrEqual(list1: List<Int>, num: Int): List<Int> {

    val qualifyingIntegers = mutableListOf<Int>()

    for (integer in list1) {
        if (integer < 0 && integer >= num) {
            qualifyingIntegers.add(integer)
        }
    }

    return qualifyingIntegers
}