/**
 * This function takes a set of instruments owned by a musician and a list of additional instruments.
 * It adds the unique additional instruments to the set of musician instruments and returns the modified set.
 *
 * @param musicianInstruments The set of instruments owned by the musician.
 * @param instruments The list of additional instruments to add.
 * @return The set of musician instruments after adding the unique additional instruments.
 */
fun addInstrumentToSet(musicianInstruments: MutableSet<String>, instruments: List<String>): MutableSet<String> {

    musicianInstruments.addAll(instruments.filter { it !in musicianInstruments })
    return musicianInstruments
}
/**
 * This function takes a set of instruments owned by a musician and a list of additional instruments.
 * It adds the unique additional instruments to the set of musician instruments and returns the modified set.
 *
 * @param musicianInstruments The set of instruments owned by the musician.
 * @param instruments The list of additional instruments to add.
 * @return The set of musician instruments after adding the unique additional instruments.
 */
fun addInstrumentToSet(musicianInstruments: MutableSet<String>, instruments: List<String>): MutableSet<String> {
/**
 * This function takes a set of instruments owned by a musician and a list of additional instruments.
 * It adds the unique additional instruments to the set of musician instruments and returns the modified set.
 *
 * @param musicianInstruments The set of instruments owned by the musician.
 * @param instruments The list of additional instruments to add.
 * @return The set of musician instruments after adding the unique additional instruments.
 */
fun addInstrumentToSet(musicianInstruments: MutableSet<String>, instruments: List<String>): MutableSet<String> {

    musicianInstruments.addAll(instruments.filter { it !in musicianInstruments })
    return musicianInstruments
}