/**
 * This function checks if a nurse has seen all the patients in a given set.
 *
 * @param nurse A set containing the patient IDs the nurse has seen.
 * @param patients A set containing all the patient IDs.
 * @return True if the nurse has seen all the patients, False otherwise.
 */
fun loopIntersection(nurse: Set<Int>, patients: Set<Int>): Boolean {

    // Iterate through each patient ID in the patients set
    for (patient in patients) {
        // Check if the patient ID exists in the nurse set
        if (patient !in nurse) {
            return false
        }
    }
    return true
}
/**
 * This function checks if a nurse has seen all the patients in a given set.
 *
 * @param nurse A set containing the patient IDs the nurse has seen.
 * @param patients A set containing all the patient IDs.
 * @return True if the nurse has seen all the patients, False otherwise.
 */
fun loopIntersection(nurse: Set<Int>, patients: Set<Int>): Boolean {
/**
 * This function checks if a nurse has seen all the patients in a given set.
 *
 * @param nurse A set containing the patient IDs the nurse has seen.
 * @param patients A set containing all the patient IDs.
 * @return True if the nurse has seen all the patients, False otherwise.
 */
fun loopIntersection(nurse: Set<Int>, patients: Set<Int>): Boolean {

    // Iterate through each patient ID in the patients set
    for (patient in patients) {
        // Check if the patient ID exists in the nurse set
        if (patient !in nurse) {
            return false
        }
    }
    return true
}