/**
 * Given a list of athletes, find and return the name of the athlete with the longest name.
 *
 * @param athletes A list of athletes, where each athlete is represented as a Pair(name, times).
 * @return The name of the athlete with the longest name.
 */
fun getLongestName(athletes: List<Pair<String, Int>>): String {

    var longestName = ""
    for (athlete in athletes) {
        val name = athlete.first
        if (name.length > longestName.length) {
            longestName = name
        }
    }
    return longestName
}
/**
 * Given a list of athletes, find and return the name of the athlete with the longest name.
 *
 * @param athletes A list of athletes, where each athlete is represented as a Pair(name, times).
 * @return The name of the athlete with the longest name.
 */
fun getLongestName(athletes: List<Pair<String, Int>>): String {
/**
 * Given a list of athletes, find and return the name of the athlete with the longest name.
 *
 * @param athletes A list of athletes, where each athlete is represented as a Pair(name, times).
 * @return The name of the athlete with the longest name.
 */
fun getLongestName(athletes: List<Pair<String, Int>>): String {

    var longestName = ""
    for (athlete in athletes) {
        val name = athlete.first
        if (name.length > longestName.length) {
            longestName = name
        }
    }
    return longestName
}