/**
 * You are given a dictionary 'musicians' where the keys are names of musicians and the values are lists
 * of instruments they can play. Your task is to find the musician who can play a solo instrument using the
 * NOT operator.
 *
 * @param musicians A dictionary where the keys are names of musicians and the values are lists of instruments.
 * @return The name of the musician who can play a solo instrument.
 */
fun findSoloInstrument(musicians: Map<String, List<String>>): String? {

    var soloInstrument: String? = null

    // Iterate over each musician in the dictionary
    for ((musician, instruments) in musicians) {
        // Check if the musician can play only one instrument
        if (instruments.size == 1) {
            // Use the NOT operator to find the musician who can play a solo instrument
            if (soloInstrument == null) {
                soloInstrument = musician
            } else {
                soloInstrument = null
            }
        }
    }

    return soloInstrument
}
/**
 * You are given a dictionary 'musicians' where the keys are names of musicians and the values are lists
 * of instruments they can play. Your task is to find the musician who can play a solo instrument using the
 * NOT operator.
 *
 * @param musicians A dictionary where the keys are names of musicians and the values are lists of instruments.
 * @return The name of the musician who can play a solo instrument.
 */
fun findSoloInstrument(musicians: Map<String, List<String>>): String? {
/**
 * You are given a dictionary 'musicians' where the keys are names of musicians and the values are lists
 * of instruments they can play. Your task is to find the musician who can play a solo instrument using the
 * NOT operator.
 *
 * @param musicians A dictionary where the keys are names of musicians and the values are lists of instruments.
 * @return The name of the musician who can play a solo instrument.
 */
fun findSoloInstrument(musicians: Map<String, List<String>>): String? {

    var soloInstrument: String? = null

    // Iterate over each musician in the dictionary
    for ((musician, instruments) in musicians) {
        // Check if the musician can play only one instrument
        if (instruments.size == 1) {
            // Use the NOT operator to find the musician who can play a solo instrument
            if (soloInstrument == null) {
                soloInstrument = musician
            } else {
                soloInstrument = null
            }
        }
    }

    return soloInstrument
}