/**
 * This function removes specific notes from a musician's music scores.
 *
 * @param musicScores A list of music scores represented as strings.
 * @param notesToRemove A list of notes to be removed from the musicScores.
 * @return A list of music scores after removing the specified notes.
 */
fun removeNotes(musicScores: MutableList<String>, notesToRemove: List<String>): MutableList<String> {

    // Iterate over each music score
    for (i in musicScores.indices) {
        // Iterate over each note to remove
        for (note in notesToRemove) {
            // Check if the note is present in the score
            if (note in musicScores[i]) {
                // Remove the note from the score using replace function
                musicScores[i] = musicScores[i].replace(note, "")
            }
        }
    }
    return musicScores
}
/**
 * This function removes specific notes from a musician's music scores.
 *
 * @param musicScores A list of music scores represented as strings.
 * @param notesToRemove A list of notes to be removed from the musicScores.
 * @return A list of music scores after removing the specified notes.
 */
fun removeNotes(musicScores: MutableList<String>, notesToRemove: List<String>): MutableList<String> {
/**
 * This function removes specific notes from a musician's music scores.
 *
 * @param musicScores A list of music scores represented as strings.
 * @param notesToRemove A list of notes to be removed from the musicScores.
 * @return A list of music scores after removing the specified notes.
 */
fun removeNotes(musicScores: MutableList<String>, notesToRemove: List<String>): MutableList<String> {

    // Iterate over each music score
    for (i in musicScores.indices) {
        // Iterate over each note to remove
        for (note in notesToRemove) {
            // Check if the note is present in the score
            if (note in musicScores[i]) {
                // Remove the note from the score using replace function
                musicScores[i] = musicScores[i].replace(note, "")
            }
        }
    }
    return musicScores
}