/**
 * Given a set of physician notes and a set of patient records, find the common elements between the two sets.
 *
 * @param physicianNotes A set of physician notes
 * @param patientRecords A set of patient records
 * @return A set containing the common elements between physician notes and patient records
 *
 * Example:
 * physicianNotes = setOf("John Doe", "Jane Smith", "Michael Johnson", "Emily Li")
 * patientRecords = setOf("John Doe", "Adam Lee", "Emily Li", "Christopher Brown")
 * findCommonElements(physicianNotes, patientRecords) // Output: setOf("John Doe", "Emily Li")
 */
fun findCommonElements(physicianNotes: Set<String>, patientRecords: Set<String>): Set<String> {

    val commonElements = mutableSetOf<String>()

    for (note in physicianNotes) {
        for (record in patientRecords) {
            if (note == record) {
                commonElements.add(note)
            }
        }
    }

    return commonElements
}
/**
 * Given a set of physician notes and a set of patient records, find the common elements between the two sets.
 *
 * @param physicianNotes A set of physician notes
 * @param patientRecords A set of patient records
 * @return A set containing the common elements between physician notes and patient records
 *
 * Example:
 * physicianNotes = setOf("John Doe", "Jane Smith", "Michael Johnson", "Emily Li")
 * patientRecords = setOf("John Doe", "Adam Lee", "Emily Li", "Christopher Brown")
 * findCommonElements(physicianNotes, patientRecords) // Output: setOf("John Doe", "Emily Li")
 */
fun findCommonElements(physicianNotes: Set<String>, patientRecords: Set<String>): Set<String> {
/**
 * Given a set of physician notes and a set of patient records, find the common elements between the two sets.
 *
 * @param physicianNotes A set of physician notes
 * @param patientRecords A set of patient records
 * @return A set containing the common elements between physician notes and patient records
 *
 * Example:
 * physicianNotes = setOf("John Doe", "Jane Smith", "Michael Johnson", "Emily Li")
 * patientRecords = setOf("John Doe", "Adam Lee", "Emily Li", "Christopher Brown")
 * findCommonElements(physicianNotes, patientRecords) // Output: setOf("John Doe", "Emily Li")
 */
fun findCommonElements(physicianNotes: Set<String>, patientRecords: Set<String>): Set<String> {

    val commonElements = mutableSetOf<String>()

    for (note in physicianNotes) {
        for (record in patientRecords) {
            if (note == record) {
                commonElements.add(note)
            }
        }
    }

    return commonElements
}