/**
 * This function takes a list of musicians and removes a specific instrument from each musician's list of instruments.
 *
 * @param musicianList A list of musicians.
 * @param instrument The instrument to be removed.
 * @return The updated musician list with the specified instrument removed from each musician.
 */
fun removeInstrument(musicianList: MutableList<MutableMap<String, MutableList<String>>>, instrument: String): MutableList<MutableMap<String, MutableList<String>>> {

    for (musician in musicianList) {
        if (instrument in musician["instruments"]!!) {
            musician["instruments"]!!.remove(instrument)
        }
    }
    return musicianList
}
/**
 * This function takes a list of musicians and removes a specific instrument from each musician's list of instruments.
 *
 * @param musicianList A list of musicians.
 * @param instrument The instrument to be removed.
 * @return The updated musician list with the specified instrument removed from each musician.
 */
fun removeInstrument(musicianList: MutableList<MutableMap<String, MutableList<String>>>, instrument: String): MutableList<MutableMap<String, MutableList<String>>> {
/**
 * This function takes a list of musicians and removes a specific instrument from each musician's list of instruments.
 *
 * @param musicianList A list of musicians.
 * @param instrument The instrument to be removed.
 * @return The updated musician list with the specified instrument removed from each musician.
 */
fun removeInstrument(musicianList: MutableList<MutableMap<String, MutableList<String>>>, instrument: String): MutableList<MutableMap<String, MutableList<String>>> {

    for (musician in musicianList) {
        if (instrument in musician["instruments"]!!) {
            musician["instruments"]!!.remove(instrument)
        }
    }
    return musicianList
}