/**
 * Given a section and an instrument, return true if the musician plays that instrument in that section, and false otherwise.
 *
 * @param section The section the musician plays in.
 * @param instrument The instrument we are searching for.
 * @return true if the musician plays the instrument in that section, false otherwise.
 */
fun findInstrument(section: String, instrument: String): Boolean {

    val orchestra = mapOf(
        "Violin I" to listOf("Violin", "Viola"),
        "Violin II" to listOf("Violin", "Viola"),
        "Viola" to listOf("Viola"),
        "Cello" to listOf("Cello"),
        "Bass" to listOf("Bass")
    )

    // Loop through each section in orchestra
    for ((sec, instruments) in orchestra) {
        // Check if the given section matches the current section
        if (sec == section) {
            // Loop through each instrument in the section
            for (inst in instruments) {
                // Check if the given instrument matches the current instrument
                if (inst == instrument) {
                    // Musician plays the instrument in that section
                    return true
                }
            }
        }
    }
    // Musician doesn't play the instrument in that section
    return false
}
/**
 * Given a section and an instrument, return true if the musician plays that instrument in that section, and false otherwise.
 *
 * @param section The section the musician plays in.
 * @param instrument The instrument we are searching for.
 * @return true if the musician plays the instrument in that section, false otherwise.
 */
fun findInstrument(section: String, instrument: String): Boolean {
/**
 * Given a section and an instrument, return true if the musician plays that instrument in that section, and false otherwise.
 *
 * @param section The section the musician plays in.
 * @param instrument The instrument we are searching for.
 * @return true if the musician plays the instrument in that section, false otherwise.
 */
fun findInstrument(section: String, instrument: String): Boolean {

    val orchestra = mapOf(
        "Violin I" to listOf("Violin", "Viola"),
        "Violin II" to listOf("Violin", "Viola"),
        "Viola" to listOf("Viola"),
        "Cello" to listOf("Cello"),
        "Bass" to listOf("Bass")
    )

    // Loop through each section in orchestra
    for ((sec, instruments) in orchestra) {
        // Check if the given section matches the current section
        if (sec == section) {
            // Loop through each instrument in the section
            for (inst in instruments) {
                // Check if the given instrument matches the current instrument
                if (inst == instrument) {
                    // Musician plays the instrument in that section
                    return true
                }
            }
        }
    }
    // Musician doesn't play the instrument in that section
    return false
}