/**
 * This function receives a dictionary and a threshold value and returns a new dictionary
 * containing the key-value pairs where the value is greater than or equal to the threshold.
 *
 * @param dictionary The dictionary to iterate over.
 * @param threshold The minimum value that the dictionary values must have.
 * @return A new dictionary containing key-value pairs where the value is greater than or equal to the threshold.
 */
fun getGreaterThanEqual(dictionary: Map<String, Int>, threshold: Int): Map<String, Int> {

    val newDict = mutableMapOf<String, Int>()

    // Iterate over each key-value pair in the dictionary
    for ((key, value) in dictionary) {
        // Check if the value is greater than or equal to the threshold
        if (value >= threshold) {
            // Add the key-value pair to the new dictionary
            newDict[key] = value
        }
    }

    return newDict
}

// Example usage
/**
 * This function receives a dictionary and a threshold value and returns a new dictionary
 * containing the key-value pairs where the value is greater than or equal to the threshold.
 *
 * @param dictionary The dictionary to iterate over.
 * @param threshold The minimum value that the dictionary values must have.
 * @return A new dictionary containing key-value pairs where the value is greater than or equal to the threshold.
 */
fun getGreaterThanEqual(dictionary: Map<String, Int>, threshold: Int): Map<String, Int> {
/**
 * This function receives a dictionary and a threshold value and returns a new dictionary
 * containing the key-value pairs where the value is greater than or equal to the threshold.
 *
 * @param dictionary The dictionary to iterate over.
 * @param threshold The minimum value that the dictionary values must have.
 * @return A new dictionary containing key-value pairs where the value is greater than or equal to the threshold.
 */
fun getGreaterThanEqual(dictionary: Map<String, Int>, threshold: Int): Map<String, Int> {

    val newDict = mutableMapOf<String, Int>()

    // Iterate over each key-value pair in the dictionary
    for ((key, value) in dictionary) {
        // Check if the value is greater than or equal to the threshold
        if (value >= threshold) {
            // Add the key-value pair to the new dictionary
            newDict[key] = value
        }
    }

    return newDict
}

// Example usage