/**
 * This exercise requires iterating over a dictionary and finding the keys with values greater than or equal to a
 * given threshold.
 *
 * @param nurseData A dictionary containing nurse information with names as keys and their ages as values
 * @param threshold A threshold value to compare the ages of nurses
 * @return A list of nurse names whose age is greater than or equal to the threshold
 */
fun iterateOverDictionaryGreaterThanOrEqual(nurseData: Map<String, Int>, threshold: Int): List<String> {

    // Initialize an empty list to store the names of nurses
    val nurseNames = mutableListOf<String>()

    // Iterate over the dictionary items using a for loop
    for ((name, age) in nurseData) {
        // Check if the age is greater than or equal to the threshold
        if (age >= threshold) {
            // If true, add the nurse name to the list
            nurseNames.add(name)
        }
    }

    return nurseNames
}
/**
 * This exercise requires iterating over a dictionary and finding the keys with values greater than or equal to a
 * given threshold.
 *
 * @param nurseData A dictionary containing nurse information with names as keys and their ages as values
 * @param threshold A threshold value to compare the ages of nurses
 * @return A list of nurse names whose age is greater than or equal to the threshold
 */
fun iterateOverDictionaryGreaterThanOrEqual(nurseData: Map<String, Int>, threshold: Int): List<String> {
/**
 * This exercise requires iterating over a dictionary and finding the keys with values greater than or equal to a
 * given threshold.
 *
 * @param nurseData A dictionary containing nurse information with names as keys and their ages as values
 * @param threshold A threshold value to compare the ages of nurses
 * @return A list of nurse names whose age is greater than or equal to the threshold
 */
fun iterateOverDictionaryGreaterThanOrEqual(nurseData: Map<String, Int>, threshold: Int): List<String> {

    // Initialize an empty list to store the names of nurses
    val nurseNames = mutableListOf<String>()

    // Iterate over the dictionary items using a for loop
    for ((name, age) in nurseData) {
        // Check if the age is greater than or equal to the threshold
        if (age >= threshold) {
            // If true, add the nurse name to the list
            nurseNames.add(name)
        }
    }

    return nurseNames
}