/**
 * A function that counts the number of students who have a score greater than or equal to a given score.
 *
 * @param students A map containing student names as keys and their scores as values.
 * @param score The score to compare the students' scores with.
 * @return The number of students with a score greater than or equal to the given score.
 *
 * Example:
 * countStudentsWithScore(mapOf("Alice" to 90, "Bob" to 80, "Charlie" to 95, "Dave" to 75), 85) // Output: 2
 */
fun countStudentsWithScore(students: Map<String, Int>, score: Int): Int {

    var count = 0

    // Iterate through the values of the students' scores map
    for (s in students.values) {
        // Compare each score with the given score
        if (s >= score) {
            count++
        }
    }

    return count
}
/**
 * A function that counts the number of students who have a score greater than or equal to a given score.
 *
 * @param students A map containing student names as keys and their scores as values.
 * @param score The score to compare the students' scores with.
 * @return The number of students with a score greater than or equal to the given score.
 *
 * Example:
 * countStudentsWithScore(mapOf("Alice" to 90, "Bob" to 80, "Charlie" to 95, "Dave" to 75), 85) // Output: 2
 */
fun countStudentsWithScore(students: Map<String, Int>, score: Int): Int {
/**
 * A function that counts the number of students who have a score greater than or equal to a given score.
 *
 * @param students A map containing student names as keys and their scores as values.
 * @param score The score to compare the students' scores with.
 * @return The number of students with a score greater than or equal to the given score.
 *
 * Example:
 * countStudentsWithScore(mapOf("Alice" to 90, "Bob" to 80, "Charlie" to 95, "Dave" to 75), 85) // Output: 2
 */
fun countStudentsWithScore(students: Map<String, Int>, score: Int): Int {

    var count = 0

    // Iterate through the values of the students' scores map
    for (s in students.values) {
        // Compare each score with the given score
        if (s >= score) {
            count++
        }
    }

    return count
}