/**
 * This function takes a map of instruments and a musician's name as input and searches for the instrument(s)
 * owned by that musician. It uses branching statements and the OR operator to locate the instrument(s).
 */
fun findInstrument(instruments: Map<String, String>, musician: String): List<String> {

    val foundInstruments = mutableListOf<String>()
    for ((instrument, owner) in instruments) {
        if (owner == musician || owner == musician.toLowerCase().replace(" ", "")) {
            foundInstruments.add(instrument)
        }
    }
    return foundInstruments
}
/**
 * This function takes a map of instruments and a musician's name as input and searches for the instrument(s)
 * owned by that musician. It uses branching statements and the OR operator to locate the instrument(s).
 */
fun findInstrument(instruments: Map<String, String>, musician: String): List<String> {
/**
 * This function takes a map of instruments and a musician's name as input and searches for the instrument(s)
 * owned by that musician. It uses branching statements and the OR operator to locate the instrument(s).
 */
fun findInstrument(instruments: Map<String, String>, musician: String): List<String> {

    val foundInstruments = mutableListOf<String>()
    for ((instrument, owner) in instruments) {
        if (owner == musician || owner == musician.toLowerCase().replace(" ", "")) {
            foundInstruments.add(instrument)
        }
    }
    return foundInstruments
}