/**
 * This function takes in two strings representing the notes of two musicians and returns a list of common notes.
 *
 * @param musicianA The notes played by musician A.
 * @param musicianB The notes played by musician B.
 * @return A list of common notes played by both musicians.
 */
fun findCommonNotes(musicianA: String, musicianB: String): List<Char> {

    val commonNotes = mutableListOf<Char>()

    for (note in musicianA) {
        if (note in musicianB) {
            commonNotes.add(note)
        }
    }

    return commonNotes
}
/**
 * This function takes in two strings representing the notes of two musicians and returns a list of common notes.
 *
 * @param musicianA The notes played by musician A.
 * @param musicianB The notes played by musician B.
 * @return A list of common notes played by both musicians.
 */
fun findCommonNotes(musicianA: String, musicianB: String): List<Char> {
/**
 * This function takes in two strings representing the notes of two musicians and returns a list of common notes.
 *
 * @param musicianA The notes played by musician A.
 * @param musicianB The notes played by musician B.
 * @return A list of common notes played by both musicians.
 */
fun findCommonNotes(musicianA: String, musicianB: String): List<Char> {

    val commonNotes = mutableListOf<Char>()

    for (note in musicianA) {
        if (note in musicianB) {
            commonNotes.add(note)
        }
    }

    return commonNotes
}