/**
 * Given two lists of notes played by a musician, find the common notes between the two lists.
 *
 * @param musicList1 The first list of notes played by the musician.
 * @param musicList2 The second list of notes played by the musician.
 * @return A list containing the common notes found in both lists.
 */
fun findCommonNotes(musicList1: List<String>, musicList2: List<String>): List<String> {

    val commonNotes = mutableListOf<String>()

    for (note1 in musicList1) {
        for (note2 in musicList2) {
            if (note1 == note2) {
                commonNotes.add(note1)
            }
        }
    }

    return commonNotes
}
/**
 * Given two lists of notes played by a musician, find the common notes between the two lists.
 *
 * @param musicList1 The first list of notes played by the musician.
 * @param musicList2 The second list of notes played by the musician.
 * @return A list containing the common notes found in both lists.
 */
fun findCommonNotes(musicList1: List<String>, musicList2: List<String>): List<String> {
/**
 * Given two lists of notes played by a musician, find the common notes between the two lists.
 *
 * @param musicList1 The first list of notes played by the musician.
 * @param musicList2 The second list of notes played by the musician.
 * @return A list containing the common notes found in both lists.
 */
fun findCommonNotes(musicList1: List<String>, musicList2: List<String>): List<String> {

    val commonNotes = mutableListOf<String>()

    for (note1 in musicList1) {
        for (note2 in musicList2) {
            if (note1 == note2) {
                commonNotes.add(note1)
            }
        }
    }

    return commonNotes
}