/**
 * Exercise:
 * Given a list of sprinters and their average speeds, calculate the number of sprinters
 * who have a speed greater than or equal to the average speed.
 *
 * Complete the code to solve the exercise.
 */
fun countSpeeds(sprinters: List<Map<String, Int>>, avgSpeed: Int): Int {

    var count = 0
    for (sprinter in sprinters) {
        if (sprinter["speed"]!! >= avgSpeed) {
            count++
        }
    }
    return count
}
/**
 * Exercise:
 * Given a list of sprinters and their average speeds, calculate the number of sprinters
 * who have a speed greater than or equal to the average speed.
 *
 * Complete the code to solve the exercise.
 */
fun countSpeeds(sprinters: List<Map<String, Int>>, avgSpeed: Int): Int {
/**
 * Exercise:
 * Given a list of sprinters and their average speeds, calculate the number of sprinters
 * who have a speed greater than or equal to the average speed.
 *
 * Complete the code to solve the exercise.
 */
fun countSpeeds(sprinters: List<Map<String, Int>>, avgSpeed: Int): Int {

    var count = 0
    for (sprinter in sprinters) {
        if (sprinter["speed"]!! >= avgSpeed) {
            count++
        }
    }
    return count
}