/**
 * Remove a specific patient from the set of active patients.
 *
 * @param patientName the name of the patient to remove
 * @param patientsSet a set of active patients
 * @return updatedPatientsSet the set of patients with the specified patient removed
 */
fun removePatient(patientName: String, patientsSet: MutableSet<String>): MutableSet<String> {

    // Check if the patient is in the set
    if (patientName in patientsSet) {
        // Remove the patient from the set
        patientsSet.remove(patientName)
    } else {
        // Print a message when the patient is not found
        println("The patient $patientName does not exist in the set of active patients.")
    }

    return patientsSet
}
/**
 * Remove a specific patient from the set of active patients.
 *
 * @param patientName the name of the patient to remove
 * @param patientsSet a set of active patients
 * @return updatedPatientsSet the set of patients with the specified patient removed
 */
fun removePatient(patientName: String, patientsSet: MutableSet<String>): MutableSet<String> {
/**
 * Remove a specific patient from the set of active patients.
 *
 * @param patientName the name of the patient to remove
 * @param patientsSet a set of active patients
 * @return updatedPatientsSet the set of patients with the specified patient removed
 */
fun removePatient(patientName: String, patientsSet: MutableSet<String>): MutableSet<String> {

    // Check if the patient is in the set
    if (patientName in patientsSet) {
        // Remove the patient from the set
        patientsSet.remove(patientName)
    } else {
        // Print a message when the patient is not found
        println("The patient $patientName does not exist in the set of active patients.")
    }

    return patientsSet
}