/**
 * This function displays the frequencies of activities done by an athlete in a given week.
 *
 * @param athlete The name of the athlete.
 * @param count A 2D list representing the activities performed by the athlete in each day of a week.
 */
fun displayFrequencies(athlete: String, count: List<List<String>>) {

    val frequencies = mutableMapOf<String, Int>()
    for (day in count) {
        for (activity in day) {
            frequencies[activity] = frequencies.getOrDefault(activity, 0) + 1
        }
    }

    println("Activity Frequencies for $athlete:")
    for ((activity, frequency) in frequencies) {
        println("$activity: $frequency times")
    }
}
/**
 * This function displays the frequencies of activities done by an athlete in a given week.
 *
 * @param athlete The name of the athlete.
 * @param count A 2D list representing the activities performed by the athlete in each day of a week.
 */
fun displayFrequencies(athlete: String, count: List<List<String>>) {
/**
 * This function displays the frequencies of activities done by an athlete in a given week.
 *
 * @param athlete The name of the athlete.
 * @param count A 2D list representing the activities performed by the athlete in each day of a week.
 */
fun displayFrequencies(athlete: String, count: List<List<String>>) {

    val frequencies = mutableMapOf<String, Int>()
    for (day in count) {
        for (activity in day) {
            frequencies[activity] = frequencies.getOrDefault(activity, 0) + 1
        }
    }

    println("Activity Frequencies for $athlete:")
    for ((activity, frequency) in frequencies) {
        println("$activity: $frequency times")
    }
}