/**
 * This function takes in two musician objects and finds the common notes
 * between their musical compositions.
 *
 * @param musician1 Tuple representing the first musician's composition.
 * @param musician2 Tuple representing the second musician's composition.
 * @return Set A set of common notes between the two musician's compositions.
 */
fun findCommonNotes(musician1: List<String>, musician2: List<String>): Set<String> {

    val commonNotes = mutableSetOf<String>()

    for (note1 in musician1) {
        for (note2 in musician2) {
            if (note1 == note2) {
                commonNotes.add(note1)
            }
        }
    }

    return commonNotes
}
/**
 * This function takes in two musician objects and finds the common notes
 * between their musical compositions.
 *
 * @param musician1 Tuple representing the first musician's composition.
 * @param musician2 Tuple representing the second musician's composition.
 * @return Set A set of common notes between the two musician's compositions.
 */
fun findCommonNotes(musician1: List<String>, musician2: List<String>): Set<String> {
/**
 * This function takes in two musician objects and finds the common notes
 * between their musical compositions.
 *
 * @param musician1 Tuple representing the first musician's composition.
 * @param musician2 Tuple representing the second musician's composition.
 * @return Set A set of common notes between the two musician's compositions.
 */
fun findCommonNotes(musician1: List<String>, musician2: List<String>): Set<String> {

    val commonNotes = mutableSetOf<String>()

    for (note1 in musician1) {
        for (note2 in musician2) {
            if (note1 == note2) {
                commonNotes.add(note1)
            }
        }
    }

    return commonNotes
}