/**
 * Given two dictionaries - musicianInstruments and musicianNotes,
 * iterate over the musicianInstruments dictionary and modify the values
 * of the musicianNotes dictionary based on some conditions.
 *
 * @param musicianInstruments A dictionary containing musician names as keys
 *                           and their respective instruments as values.
 * @param musicianNotes A dictionary containing musician names as keys
 *                     and their respective notes as values.
 * @return The modified musicianNotes dictionary.
 */
fun modifyMusicianInstruments(musicianInstruments: Map<String, String>, musicianNotes: MutableMap<String, List<String>>): Map<String, List<String>> {

    for ((musician, instrument) in musicianInstruments) {
        musicianNotes[musician] = when (instrument) {
            "guitar" -> listOf("C", "D", "E")
            "piano" -> listOf("A", "B", "C")
            "drums" -> listOf("X", "Y", "Z")
            else -> listOf("Unknown")
        }
    }
    return musicianNotes
}
/**
 * Given two dictionaries - musicianInstruments and musicianNotes,
 * iterate over the musicianInstruments dictionary and modify the values
 * of the musicianNotes dictionary based on some conditions.
 *
 * @param musicianInstruments A dictionary containing musician names as keys
 *                           and their respective instruments as values.
 * @param musicianNotes A dictionary containing musician names as keys
 *                     and their respective notes as values.
 * @return The modified musicianNotes dictionary.
 */
fun modifyMusicianInstruments(musicianInstruments: Map<String, String>, musicianNotes: MutableMap<String, List<String>>): Map<String, List<String>> {
/**
 * Given two dictionaries - musicianInstruments and musicianNotes,
 * iterate over the musicianInstruments dictionary and modify the values
 * of the musicianNotes dictionary based on some conditions.
 *
 * @param musicianInstruments A dictionary containing musician names as keys
 *                           and their respective instruments as values.
 * @param musicianNotes A dictionary containing musician names as keys
 *                     and their respective notes as values.
 * @return The modified musicianNotes dictionary.
 */
fun modifyMusicianInstruments(musicianInstruments: Map<String, String>, musicianNotes: MutableMap<String, List<String>>): Map<String, List<String>> {

    for ((musician, instrument) in musicianInstruments) {
        musicianNotes[musician] = when (instrument) {
            "guitar" -> listOf("C", "D", "E")
            "piano" -> listOf("A", "B", "C")
            "drums" -> listOf("X", "Y", "Z")
            else -> listOf("Unknown")
        }
    }
    return musicianNotes
}