/**
 * Given a list of athletes and an index, this function returns the name of the athlete at the given index.
 *
 * @param athletes A list of tuples representing athletes, where each tuple has the format (name, sport, country).
 * @param index An integer representing the index of the desired athlete's name.
 * @return The name of the athlete at the given index.
 */
fun athleteDetails(athletes: List<Triple<String, String, String>>, index: Int): String {

    val athlete = athletes[index]
    return athlete.first
}
/**
 * Given a list of athletes and an index, this function returns the name of the athlete at the given index.
 *
 * @param athletes A list of tuples representing athletes, where each tuple has the format (name, sport, country).
 * @param index An integer representing the index of the desired athlete's name.
 * @return The name of the athlete at the given index.
 */
fun athleteDetails(athletes: List<Triple<String, String, String>>, index: Int): String {
/**
 * Given a list of athletes and an index, this function returns the name of the athlete at the given index.
 *
 * @param athletes A list of tuples representing athletes, where each tuple has the format (name, sport, country).
 * @param index An integer representing the index of the desired athlete's name.
 * @return The name of the athlete at the given index.
 */
fun athleteDetails(athletes: List<Triple<String, String, String>>, index: Int): String {

    val athlete = athletes[index]
    return athlete.first
}