/**
 * Given a nurse schedule and new shifts, modify the nurse schedule map by updating the shift time for each nurse.
 *
 * @param nurseSchedule A map representing the current nurse schedule where the keys are nurses' names and the values are their shift times.
 * @param newShifts A list of pairs where each pair contains a nurse's name and the new shift time.
 * @return The modified nurse schedule map with updated shift times.
 */
fun modifyNurseSchedule(nurseSchedule: MutableMap<String, String>, newShifts: List<Pair<String, String>>): MutableMap<String, String> {

    for ((nurse, shiftTime) in newShifts) {
        if (nurseSchedule.containsKey(nurse)) {
            nurseSchedule[nurse] = shiftTime
        }
    }
    return nurseSchedule
}
/**
 * Given a nurse schedule and new shifts, modify the nurse schedule map by updating the shift time for each nurse.
 *
 * @param nurseSchedule A map representing the current nurse schedule where the keys are nurses' names and the values are their shift times.
 * @param newShifts A list of pairs where each pair contains a nurse's name and the new shift time.
 * @return The modified nurse schedule map with updated shift times.
 */
fun modifyNurseSchedule(nurseSchedule: MutableMap<String, String>, newShifts: List<Pair<String, String>>): MutableMap<String, String> {
/**
 * Given a nurse schedule and new shifts, modify the nurse schedule map by updating the shift time for each nurse.
 *
 * @param nurseSchedule A map representing the current nurse schedule where the keys are nurses' names and the values are their shift times.
 * @param newShifts A list of pairs where each pair contains a nurse's name and the new shift time.
 * @return The modified nurse schedule map with updated shift times.
 */
fun modifyNurseSchedule(nurseSchedule: MutableMap<String, String>, newShifts: List<Pair<String, String>>): MutableMap<String, String> {

    for ((nurse, shiftTime) in newShifts) {
        if (nurseSchedule.containsKey(nurse)) {
            nurseSchedule[nurse] = shiftTime
        }
    }
    return nurseSchedule
}