/**
 * Create a range of ages for each athlete and iterate over dictionary to print the names of athletes falling within a specific age range.
 */
fun getAthletes(names: List<String>, ages: List<Int>) {

    val athletes = mutableMapOf<String, List<Int>>()

    // Create a range of ages for each athlete
    for ((name, age) in names.zip(ages)) {
        athletes[name] = (age until age + 10).toList()
    }

    // Iterate over the dictionary
    for ((name, ageRange) in athletes) {
        for (age in ageRange) {
            if (age in 25..35) {
                println(name)
            }
        }
    }
}
/**
 * Create a range of ages for each athlete and iterate over dictionary to print the names of athletes falling within a specific age range.
 */
fun getAthletes(names: List<String>, ages: List<Int>) {
/**
 * Create a range of ages for each athlete and iterate over dictionary to print the names of athletes falling within a specific age range.
 */
fun getAthletes(names: List<String>, ages: List<Int>) {

    val athletes = mutableMapOf<String, List<Int>>()

    // Create a range of ages for each athlete
    for ((name, age) in names.zip(ages)) {
        athletes[name] = (age until age + 10).toList()
    }

    // Iterate over the dictionary
    for ((name, ageRange) in athletes) {
        for (age in ageRange) {
            if (age in 25..35) {
                println(name)
            }
        }
    }
}