/**
 * Write a function that takes an athlete's name and a nested list of practice results.
 * Each element of the nested list represents a day of practice and contains a list of runs.
 * Each run is represented by a time in seconds.
 *
 * Your task is to calculate the total number of practice runs the athlete has done.
 *
 * @param athlete The name of the athlete.
 * @param practiceResults A nested list of practice results.
 * @return The total number of practice runs.
 *
 * Example:
 * countPracticeRuns("John", listOf(listOf(12, 15, 10), listOf(9, 13, 7), listOf(11, 18, 14))) -> 9
 * countPracticeRuns("Alice", listOf(listOf(5, 8), listOf(20, 18, 22, 15), listOf(13, 10))) -> 7
 */
fun countPracticeRuns(athlete: String, practiceResults: List<List<Int>>): Int {

    var totalRuns = 0

    for (practiceDay in practiceResults) {
        totalRuns += practiceDay.size
    }

    return totalRuns
}
/**
 * Write a function that takes an athlete's name and a nested list of practice results.
 * Each element of the nested list represents a day of practice and contains a list of runs.
 * Each run is represented by a time in seconds.
 *
 * Your task is to calculate the total number of practice runs the athlete has done.
 *
 * @param athlete The name of the athlete.
 * @param practiceResults A nested list of practice results.
 * @return The total number of practice runs.
 *
 * Example:
 * countPracticeRuns("John", listOf(listOf(12, 15, 10), listOf(9, 13, 7), listOf(11, 18, 14))) -> 9
 * countPracticeRuns("Alice", listOf(listOf(5, 8), listOf(20, 18, 22, 15), listOf(13, 10))) -> 7
 */
fun countPracticeRuns(athlete: String, practiceResults: List<List<Int>>): Int {
/**
 * Write a function that takes an athlete's name and a nested list of practice results.
 * Each element of the nested list represents a day of practice and contains a list of runs.
 * Each run is represented by a time in seconds.
 *
 * Your task is to calculate the total number of practice runs the athlete has done.
 *
 * @param athlete The name of the athlete.
 * @param practiceResults A nested list of practice results.
 * @return The total number of practice runs.
 *
 * Example:
 * countPracticeRuns("John", listOf(listOf(12, 15, 10), listOf(9, 13, 7), listOf(11, 18, 14))) -> 9
 * countPracticeRuns("Alice", listOf(listOf(5, 8), listOf(20, 18, 22, 15), listOf(13, 10))) -> 7
 */
fun countPracticeRuns(athlete: String, practiceResults: List<List<Int>>): Int {

    var totalRuns = 0

    for (practiceDay in practiceResults) {
        totalRuns += practiceDay.size
    }

    return totalRuns
}