/**
 * Given the set of notes played by two musicians, this function finds the common notes between them.
 *
 * @param musician1 Set containing the notes played by musician 1
 * @param musician2 Set containing the notes played by musician 2
 * @return Set containing the common notes played by both musicians
 */
fun findCommonNotes(musician1: Set<String>, musician2: Set<String>): Set<String> {

    val commonNotes = mutableSetOf<String>()
    for (note1 in musician1) {
        for (note2 in musician2) {
            if (note1 == note2) {
                commonNotes.add(note1)
            }
        }
    }
    return commonNotes
}
/**
 * Given the set of notes played by two musicians, this function finds the common notes between them.
 *
 * @param musician1 Set containing the notes played by musician 1
 * @param musician2 Set containing the notes played by musician 2
 * @return Set containing the common notes played by both musicians
 */
fun findCommonNotes(musician1: Set<String>, musician2: Set<String>): Set<String> {
/**
 * Given the set of notes played by two musicians, this function finds the common notes between them.
 *
 * @param musician1 Set containing the notes played by musician 1
 * @param musician2 Set containing the notes played by musician 2
 * @return Set containing the common notes played by both musicians
 */
fun findCommonNotes(musician1: Set<String>, musician2: Set<String>): Set<String> {

    val commonNotes = mutableSetOf<String>()
    for (note1 in musician1) {
        for (note2 in musician2) {
            if (note1 == note2) {
                commonNotes.add(note1)
            }
        }
    }
    return commonNotes
}