/**
 * A veterinarian has a schedule consisting of tuples representing their availability in the format (day, start_time, end_time).
 * This function checks if a veterinarian is available on a specific day and time.
 *
 * @param veterinarianSchedule The veterinarian's schedule containing tuples of (day, start_time, end_time).
 * @param day The day to check the availability for.
 * @param time The specific time to check the availability for.
 * @return True if the veterinarian is available, False otherwise.
 */
fun checkVeterinarianAvailability(veterinarianSchedule: List<Triple<String, Float, Float>>, day: String, time: Float): Boolean {

    for (schedule in veterinarianSchedule) {
        if (schedule.first == day) {
            if (schedule.second <= time && time <= schedule.third) {
                return true
            }
        }
    }
    return false
}
/**
 * A veterinarian has a schedule consisting of tuples representing their availability in the format (day, start_time, end_time).
 * This function checks if a veterinarian is available on a specific day and time.
 *
 * @param veterinarianSchedule The veterinarian's schedule containing tuples of (day, start_time, end_time).
 * @param day The day to check the availability for.
 * @param time The specific time to check the availability for.
 * @return True if the veterinarian is available, False otherwise.
 */
fun checkVeterinarianAvailability(veterinarianSchedule: List<Triple<String, Float, Float>>, day: String, time: Float): Boolean {
/**
 * A veterinarian has a schedule consisting of tuples representing their availability in the format (day, start_time, end_time).
 * This function checks if a veterinarian is available on a specific day and time.
 *
 * @param veterinarianSchedule The veterinarian's schedule containing tuples of (day, start_time, end_time).
 * @param day The day to check the availability for.
 * @param time The specific time to check the availability for.
 * @return True if the veterinarian is available, False otherwise.
 */
fun checkVeterinarianAvailability(veterinarianSchedule: List<Triple<String, Float, Float>>, day: String, time: Float): Boolean {

    for (schedule in veterinarianSchedule) {
        if (schedule.first == day) {
            if (schedule.second <= time && time <= schedule.third) {
                return true
            }
        }
    }
    return false
}