/**
 * Given a list of musicians and a specific instrument, return the musicians who can play that instrument.
 *
 * @param musicians A list of musician names.
 * @param instrument The instrument to search for.
 * @return A list of musicians who can play the specified instrument.
 */
fun findInstrument(musicians: List<Map<String, Any>>, instrument: String): List<Map<String, Any>> {

    val result = mutableListOf<Map<String, Any>>()
    for (musician in musicians) {
        val instruments = musician["instruments"] as List<String>
        if (instrument in instruments) {
            result.add(musician)
        }
    }
    return result
}
/**
 * Given a list of musicians and a specific instrument, return the musicians who can play that instrument.
 *
 * @param musicians A list of musician names.
 * @param instrument The instrument to search for.
 * @return A list of musicians who can play the specified instrument.
 */
fun findInstrument(musicians: List<Map<String, Any>>, instrument: String): List<Map<String, Any>> {
/**
 * Given a list of musicians and a specific instrument, return the musicians who can play that instrument.
 *
 * @param musicians A list of musician names.
 * @param instrument The instrument to search for.
 * @return A list of musicians who can play the specified instrument.
 */
fun findInstrument(musicians: List<Map<String, Any>>, instrument: String): List<Map<String, Any>> {

    val result = mutableListOf<Map<String, Any>>()
    for (musician in musicians) {
        val instruments = musician["instruments"] as List<String>
        if (instrument in instruments) {
            result.add(musician)
        }
    }
    return result
}