/**
 * Given a dictionary of patients with their names as keys and their genders as values, 
 * this function returns a boolean value indicating whether there are both male and female patients.
 *
 * @param patients A dictionary representing the patients and their genders.
 * @return True if there are both male and female patients, False otherwise.
 */
fun nurseGender(patients: Map<String, String>): Boolean {

    var maleCount = 0
    var femaleCount = 0

    patients.values.forEach { gender ->
        when (gender) {
            "Male" -> maleCount++
            "Female" -> femaleCount++
        }
    }

    return maleCount > 0 && femaleCount > 0
}
/**
 * Given a dictionary of patients with their names as keys and their genders as values, 
 * this function returns a boolean value indicating whether there are both male and female patients.
 *
 * @param patients A dictionary representing the patients and their genders.
 * @return True if there are both male and female patients, False otherwise.
 */
fun nurseGender(patients: Map<String, String>): Boolean {
/**
 * Given a dictionary of patients with their names as keys and their genders as values, 
 * this function returns a boolean value indicating whether there are both male and female patients.
 *
 * @param patients A dictionary representing the patients and their genders.
 * @return True if there are both male and female patients, False otherwise.
 */
fun nurseGender(patients: Map<String, String>): Boolean {

    var maleCount = 0
    var femaleCount = 0

    patients.values.forEach { gender ->
        when (gender) {
            "Male" -> maleCount++
            "Female" -> femaleCount++
        }
    }

    return maleCount > 0 && femaleCount > 0
}