/**
 * Given a dictionary representing the daily number of visits for different patients,
 * this function should return the count of patients who have never missed an appointment.
 *
 * @param dictionary A dictionary where the keys represent the patients and the values represent the number of visits.
 * @return The count of patients who have never missed an appointment.
 */
fun countNotInValues(dictionary: Map<String, Int>): Int {

    var count = 0

    // Loop through the dictionary
    for (patient in dictionary.keys) {
        // Initialize a variable to keep track of whether the patient has missed any appointment
        var missedAppointment = false

        // Loop through the values of the dictionary
        for (value in dictionary.values) {
            // Check if the patient's number of visits is not in any other patient's number of visits
            if (dictionary[patient] !in dictionary.values) {
                // Patient has never missed an appointment, increase the count
                missedAppointment = true
                break
            }
        }

        // If the patient has never missed an appointment, increase the count
        if (!missedAppointment) {
            count++
        }
    }

    return count
}
/**
 * Given a dictionary representing the daily number of visits for different patients,
 * this function should return the count of patients who have never missed an appointment.
 *
 * @param dictionary A dictionary where the keys represent the patients and the values represent the number of visits.
 * @return The count of patients who have never missed an appointment.
 */
fun countNotInValues(dictionary: Map<String, Int>): Int {
/**
 * Given a dictionary representing the daily number of visits for different patients,
 * this function should return the count of patients who have never missed an appointment.
 *
 * @param dictionary A dictionary where the keys represent the patients and the values represent the number of visits.
 * @return The count of patients who have never missed an appointment.
 */
fun countNotInValues(dictionary: Map<String, Int>): Int {

    var count = 0

    // Loop through the dictionary
    for (patient in dictionary.keys) {
        // Initialize a variable to keep track of whether the patient has missed any appointment
        var missedAppointment = false

        // Loop through the values of the dictionary
        for (value in dictionary.values) {
            // Check if the patient's number of visits is not in any other patient's number of visits
            if (dictionary[patient] !in dictionary.values) {
                // Patient has never missed an appointment, increase the count
                missedAppointment = true
                break
            }
        }

        // If the patient has never missed an appointment, increase the count
        if (!missedAppointment) {
            count++
        }
    }

    return count
}