/**
 * This exercise tests your understanding of removing elements from a list and using the subtraction assignment operator.
 *
 * You are a musician and you have a list of instruments. Your task is to remove a specific instrument from the list using the subtraction assignment operator '-='. You need to modify the 'removeInstrument' function to remove the instrumentToRemove from the given list of instruments.
 *
 * @param instruments A list of musical instruments (e.g., ['guitar', 'piano', 'drums', 'violin']).
 * @param instrumentToRemove The name of the instrument that needs to be removed from the list (e.g., 'piano').
 * @return The modified list of instruments with the specific instrument removed.
 */
fun removeInstrument(instruments: MutableList<String>, instrumentToRemove: String): MutableList<String> {

    // Remove the instrument from the list using the subtraction assignment operator
    instruments -= instrumentToRemove
    return instruments
}
/**
 * This exercise tests your understanding of removing elements from a list and using the subtraction assignment operator.
 *
 * You are a musician and you have a list of instruments. Your task is to remove a specific instrument from the list using the subtraction assignment operator '-='. You need to modify the 'removeInstrument' function to remove the instrumentToRemove from the given list of instruments.
 *
 * @param instruments A list of musical instruments (e.g., ['guitar', 'piano', 'drums', 'violin']).
 * @param instrumentToRemove The name of the instrument that needs to be removed from the list (e.g., 'piano').
 * @return The modified list of instruments with the specific instrument removed.
 */
fun removeInstrument(instruments: MutableList<String>, instrumentToRemove: String): MutableList<String> {
/**
 * This exercise tests your understanding of removing elements from a list and using the subtraction assignment operator.
 *
 * You are a musician and you have a list of instruments. Your task is to remove a specific instrument from the list using the subtraction assignment operator '-='. You need to modify the 'removeInstrument' function to remove the instrumentToRemove from the given list of instruments.
 *
 * @param instruments A list of musical instruments (e.g., ['guitar', 'piano', 'drums', 'violin']).
 * @param instrumentToRemove The name of the instrument that needs to be removed from the list (e.g., 'piano').
 * @return The modified list of instruments with the specific instrument removed.
 */
fun removeInstrument(instruments: MutableList<String>, instrumentToRemove: String): MutableList<String> {

    // Remove the instrument from the list using the subtraction assignment operator
    instruments -= instrumentToRemove
    return instruments
}