/**
 * This function takes a list of musicians and adds a new instrument to each musician's list of instruments.
 *
 * @param musicianList A list of musicians.
 * @param instrument The instrument to be added.
 * @return The updated musician list with the new instrument added to each musician.
 */
fun addInstrument(musicianList: MutableList<MutableMap<String, Any>>, instrument: String): MutableList<MutableMap<String, Any>> {

    musicianList.forEach { musician ->
        (musician["instruments"] as MutableList<String>).add(instrument)
    }
    return musicianList
}
/**
 * This function takes a list of musicians and adds a new instrument to each musician's list of instruments.
 *
 * @param musicianList A list of musicians.
 * @param instrument The instrument to be added.
 * @return The updated musician list with the new instrument added to each musician.
 */
fun addInstrument(musicianList: MutableList<MutableMap<String, Any>>, instrument: String): MutableList<MutableMap<String, Any>> {
/**
 * This function takes a list of musicians and adds a new instrument to each musician's list of instruments.
 *
 * @param musicianList A list of musicians.
 * @param instrument The instrument to be added.
 * @return The updated musician list with the new instrument added to each musician.
 */
fun addInstrument(musicianList: MutableList<MutableMap<String, Any>>, instrument: String): MutableList<MutableMap<String, Any>> {

    musicianList.forEach { musician ->
        (musician["instruments"] as MutableList<String>).add(instrument)
    }
    return musicianList
}