/**
 * Given a dictionary of patient records, with the key as the patient's name and value as a list of symptoms they are experiencing,
 * this function finds the patients who are experiencing symptoms not present in the complement operator dataset, and returns their names.
 */
fun findSymptoms(patientRecords: Map<String, List<String>>): List<String> {

    val complementOperators = listOf("cough", "fever", "headache", "fatigue", "nausea")
    val complementOperatorDataset = complementOperators.toSet()

    val patientsWithoutComplementSymps = mutableListOf<String>()

    for ((patient, symptoms) in patientRecords) {
        val uniqueSymptoms = symptoms.toSet() - complementOperatorDataset
        if (uniqueSymptoms.isNotEmpty()) {
            patientsWithoutComplementSymps.add(patient)
        }
    }

    return patientsWithoutComplementSymps
}
/**
 * Given a dictionary of patient records, with the key as the patient's name and value as a list of symptoms they are experiencing,
 * this function finds the patients who are experiencing symptoms not present in the complement operator dataset, and returns their names.
 */
fun findSymptoms(patientRecords: Map<String, List<String>>): List<String> {
/**
 * Given a dictionary of patient records, with the key as the patient's name and value as a list of symptoms they are experiencing,
 * this function finds the patients who are experiencing symptoms not present in the complement operator dataset, and returns their names.
 */
fun findSymptoms(patientRecords: Map<String, List<String>>): List<String> {

    val complementOperators = listOf("cough", "fever", "headache", "fatigue", "nausea")
    val complementOperatorDataset = complementOperators.toSet()

    val patientsWithoutComplementSymps = mutableListOf<String>()

    for ((patient, symptoms) in patientRecords) {
        val uniqueSymptoms = symptoms.toSet() - complementOperatorDataset
        if (uniqueSymptoms.isNotEmpty()) {
            patientsWithoutComplementSymps.add(patient)
        }
    }

    return patientsWithoutComplementSymps
}