/**
 * This function takes a list of nurse names and a list of patient names as arguments.
 * It counts the number of patients in the given list of patient names who are not equal to any nurse name.
 * Returns the count.
 *
 * Example usage:
 * countPeople(listOf("Nurse1", "Nurse2", "Nurse3"), listOf("Patient1", "Patient2", "Nurse2")) // 2
 * countPeople(listOf("Nurse4", "Nurse5"), listOf("Patient3", "Patient4", "Nurse4", "Patient5")) // 3
 */
fun countPeople(nurseNames: List<String>, patientNames: List<String>): Int {

    var count = 0
    for (patient in patientNames) {
        var foundMatch = false
        for (nurse in nurseNames) {
            if (patient == nurse) {
                foundMatch = true
                break
            }
        }
        if (!foundMatch) {
            count++
        }
    }
    return count
}
/**
 * This function takes a list of nurse names and a list of patient names as arguments.
 * It counts the number of patients in the given list of patient names who are not equal to any nurse name.
 * Returns the count.
 *
 * Example usage:
 * countPeople(listOf("Nurse1", "Nurse2", "Nurse3"), listOf("Patient1", "Patient2", "Nurse2")) // 2
 * countPeople(listOf("Nurse4", "Nurse5"), listOf("Patient3", "Patient4", "Nurse4", "Patient5")) // 3
 */
fun countPeople(nurseNames: List<String>, patientNames: List<String>): Int {
/**
 * This function takes a list of nurse names and a list of patient names as arguments.
 * It counts the number of patients in the given list of patient names who are not equal to any nurse name.
 * Returns the count.
 *
 * Example usage:
 * countPeople(listOf("Nurse1", "Nurse2", "Nurse3"), listOf("Patient1", "Patient2", "Nurse2")) // 2
 * countPeople(listOf("Nurse4", "Nurse5"), listOf("Patient3", "Patient4", "Nurse4", "Patient5")) // 3
 */
fun countPeople(nurseNames: List<String>, patientNames: List<String>): Int {

    var count = 0
    for (patient in patientNames) {
        var foundMatch = false
        for (nurse in nurseNames) {
            if (patient == nurse) {
                foundMatch = true
                break
            }
        }
        if (!foundMatch) {
            count++
        }
    }
    return count
}