/**
 * Given a nested dictionary representing the schedule of nurses, this function should return the names of the nurses who are scheduled to work on all weekdays (Monday to Friday).
 */
fun nurseSchedule(nurses: Map<String, List<String>>): List<String> {

    val fullWeek = listOf("Monday", "Tuesday", "Wednesday", "Thursday", "Friday")
    val scheduledNurses = mutableListOf<String>()

    for (nurse in nurses.keys) {
        var nursesAvailable = true
        for (day in fullWeek) {
            if (day !in nurses[nurse] ?: emptyList()) {
                nursesAvailable = false
                break
            }
        }
        if (nursesAvailable) {
            scheduledNurses.add(nurse)
        }
    }

    return scheduledNurses
}
/**
 * Given a nested dictionary representing the schedule of nurses, this function should return the names of the nurses who are scheduled to work on all weekdays (Monday to Friday).
 */
fun nurseSchedule(nurses: Map<String, List<String>>): List<String> {
/**
 * Given a nested dictionary representing the schedule of nurses, this function should return the names of the nurses who are scheduled to work on all weekdays (Monday to Friday).
 */
fun nurseSchedule(nurses: Map<String, List<String>>): List<String> {

    val fullWeek = listOf("Monday", "Tuesday", "Wednesday", "Thursday", "Friday")
    val scheduledNurses = mutableListOf<String>()

    for (nurse in nurses.keys) {
        var nursesAvailable = true
        for (day in fullWeek) {
            if (day !in nurses[nurse] ?: emptyList()) {
                nursesAvailable = false
                break
            }
        }
        if (nursesAvailable) {
            scheduledNurses.add(nurse)
        }
    }

    return scheduledNurses
}