/**
 * Given a list of nurses and a patient's name, find the nurse who is responsible for the patient.
 *
 * @param nurses A list of nurse names.
 * @param patientName The name of the patient.
 * @return The name of the nurse responsible for the patient, or "No nurse found" if not found.
 */
fun findPatient(nurses: List<String>, patientName: String): String {

    // Iterate over each nurse in the list
    for (nurse in nurses) {
        // Check if the patient's name is present in the nurse's name
        if (nurse.contains(patientName)) {
            return nurse
        }
    }
    return "No nurse found"
}
/**
 * Given a list of nurses and a patient's name, find the nurse who is responsible for the patient.
 *
 * @param nurses A list of nurse names.
 * @param patientName The name of the patient.
 * @return The name of the nurse responsible for the patient, or "No nurse found" if not found.
 */
fun findPatient(nurses: List<String>, patientName: String): String {
/**
 * Given a list of nurses and a patient's name, find the nurse who is responsible for the patient.
 *
 * @param nurses A list of nurse names.
 * @param patientName The name of the patient.
 * @return The name of the nurse responsible for the patient, or "No nurse found" if not found.
 */
fun findPatient(nurses: List<String>, patientName: String): String {

    // Iterate over each nurse in the list
    for (nurse in nurses) {
        // Check if the patient's name is present in the nurse's name
        if (nurse.contains(patientName)) {
            return nurse
        }
    }
    return "No nurse found"
}