/**
 * You are a veterinarian and you are given a schedule represented as a nested dictionary where the keys are the days of the week
 * (Monday to Friday) and the values are dictionaries representing the time slots and the pets scheduled for those time slots.
 * Each time slot dictionary has time slots (morning and afternoon) as keys and the pets as values. You need to check whether a given
 * pet is scheduled for any time slot during the week. If the pet is found, return a message stating the day and time at which the pet
 * is scheduled. Otherwise, return a message stating that the pet is not scheduled for the current week.
 *
 * @param schedule A nested dictionary representing the veterinarian's schedule.
 * @param petName The name of the pet to search in the schedule.
 * @return A message stating whether the pet is scheduled and for which day and time slot.
 */
fun checkVeterinarianSchedule(schedule: Map<String, Map<String, List<String>>>, petName: String): String {

    for ((day, timeSlots) in schedule) {
        for ((timeSlot, pets) in timeSlots) {
            if (petName in pets) {
                return "The pet $petName is scheduled for $day in the $timeSlot"
            }
        }
    }
    return "The pet $petName is not scheduled for the current week"
}
/**
 * You are a veterinarian and you are given a schedule represented as a nested dictionary where the keys are the days of the week
 * (Monday to Friday) and the values are dictionaries representing the time slots and the pets scheduled for those time slots.
 * Each time slot dictionary has time slots (morning and afternoon) as keys and the pets as values. You need to check whether a given
 * pet is scheduled for any time slot during the week. If the pet is found, return a message stating the day and time at which the pet
 * is scheduled. Otherwise, return a message stating that the pet is not scheduled for the current week.
 *
 * @param schedule A nested dictionary representing the veterinarian's schedule.
 * @param petName The name of the pet to search in the schedule.
 * @return A message stating whether the pet is scheduled and for which day and time slot.
 */
fun checkVeterinarianSchedule(schedule: Map<String, Map<String, List<String>>>, petName: String): String {
/**
 * You are a veterinarian and you are given a schedule represented as a nested dictionary where the keys are the days of the week
 * (Monday to Friday) and the values are dictionaries representing the time slots and the pets scheduled for those time slots.
 * Each time slot dictionary has time slots (morning and afternoon) as keys and the pets as values. You need to check whether a given
 * pet is scheduled for any time slot during the week. If the pet is found, return a message stating the day and time at which the pet
 * is scheduled. Otherwise, return a message stating that the pet is not scheduled for the current week.
 *
 * @param schedule A nested dictionary representing the veterinarian's schedule.
 * @param petName The name of the pet to search in the schedule.
 * @return A message stating whether the pet is scheduled and for which day and time slot.
 */
fun checkVeterinarianSchedule(schedule: Map<String, Map<String, List<String>>>, petName: String): String {

    for ((day, timeSlots) in schedule) {
        for ((timeSlot, pets) in timeSlots) {
            if (petName in pets) {
                return "The pet $petName is scheduled for $day in the $timeSlot"
            }
        }
    }
    return "The pet $petName is not scheduled for the current week"
}