/**
 * Given a nested dictionary nurses_dict that stores the number of patients each nurse has attended,
 * this function should return the total number of patients attended by all the nurses.
 */
fun countPatients(nursesDict: Map<String, Map<String, Map<String, Int>>>): Int {

    var totalPatients = 0
    for ((_, shifts) in nursesDict) {
        for ((_, days) in shifts) {
            for (patients in days.values) {
                totalPatients += patients
            }
        }
    }
    return totalPatients
}
/**
 * Given a nested dictionary nurses_dict that stores the number of patients each nurse has attended,
 * this function should return the total number of patients attended by all the nurses.
 */
fun countPatients(nursesDict: Map<String, Map<String, Map<String, Int>>>): Int {
/**
 * Given a nested dictionary nurses_dict that stores the number of patients each nurse has attended,
 * this function should return the total number of patients attended by all the nurses.
 */
fun countPatients(nursesDict: Map<String, Map<String, Map<String, Int>>>): Int {

    var totalPatients = 0
    for ((_, shifts) in nursesDict) {
        for ((_, days) in shifts) {
            for (patients in days.values) {
                totalPatients += patients
            }
        }
    }
    return totalPatients
}