/**
 * Given a dictionary representing an athlete's training data, the function should calculate and return the total distance covered by the athlete.
 */
fun calculateTotalDistance(athlete: Map<String, List<Map<String, Int>>>): Int {

    var totalDistance = 0

    for ((_, workouts) in athlete) {
        for (workout in workouts) {
            totalDistance += workout["distance"] ?: 0
        }
    }

    return totalDistance
}
/**
 * Given a dictionary representing an athlete's training data, the function should calculate and return the total distance covered by the athlete.
 */
fun calculateTotalDistance(athlete: Map<String, List<Map<String, Int>>>): Int {
/**
 * Given a dictionary representing an athlete's training data, the function should calculate and return the total distance covered by the athlete.
 */
fun calculateTotalDistance(athlete: Map<String, List<Map<String, Int>>>): Int {

    var totalDistance = 0

    for ((_, workouts) in athlete) {
        for (workout in workouts) {
            totalDistance += workout["distance"] ?: 0
        }
    }

    return totalDistance
}