/**
 * Given a list of music notes and a set of notes to remove,
 * remove all occurrences of the notes from the list.
 *
 * @param musicList A list of music notes.
 * @param notesToRemove A set of notes to remove from the list.
 * @return The modified list after removing the specified notes.
 */
fun removeNotes(musicList: List<String>, notesToRemove: Set<String>): List<String> {

    // Convert the list to a set for efficient element removal
    val musicSet = musicList.toMutableSet()

    // Remove the specified notes from the set
    musicSet.removeAll(notesToRemove)

    // Convert the set back to a list
    val modifiedList = musicSet.toList()

    return modifiedList
}
/**
 * Given a list of music notes and a set of notes to remove,
 * remove all occurrences of the notes from the list.
 *
 * @param musicList A list of music notes.
 * @param notesToRemove A set of notes to remove from the list.
 * @return The modified list after removing the specified notes.
 */
fun removeNotes(musicList: List<String>, notesToRemove: Set<String>): List<String> {
/**
 * Given a list of music notes and a set of notes to remove,
 * remove all occurrences of the notes from the list.
 *
 * @param musicList A list of music notes.
 * @param notesToRemove A set of notes to remove from the list.
 * @return The modified list after removing the specified notes.
 */
fun removeNotes(musicList: List<String>, notesToRemove: Set<String>): List<String> {

    // Convert the list to a set for efficient element removal
    val musicSet = musicList.toMutableSet()

    // Remove the specified notes from the set
    musicSet.removeAll(notesToRemove)

    // Convert the set back to a list
    val modifiedList = musicSet.toList()

    return modifiedList
}