/**
 * This function calculates the range of notes that a musician can play on a given instrument.
 *
 * @param instrument The name of the instrument.
 * @param startNote The starting note of the range.
 * @param endNote The ending note of the range.
 * @return A list of the notes within the specified range for the given instrument.
 */
fun findNoteRange(instrument: String, startNote: String, endNote: String): List<String> {

    // Define available notes for each instrument
    val notesByInstrument = mapOf(
        "guitar" to listOf("C", "D", "E", "F", "G", "A", "B"),
        "piano" to listOf("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"),
        "flute" to listOf("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C2")
    )

    return notesByInstrument[instrument] ?: listOf("Unknown instrument")
}
/**
 * This function calculates the range of notes that a musician can play on a given instrument.
 *
 * @param instrument The name of the instrument.
 * @param startNote The starting note of the range.
 * @param endNote The ending note of the range.
 * @return A list of the notes within the specified range for the given instrument.
 */
fun findNoteRange(instrument: String, startNote: String, endNote: String): List<String> {
/**
 * This function calculates the range of notes that a musician can play on a given instrument.
 *
 * @param instrument The name of the instrument.
 * @param startNote The starting note of the range.
 * @param endNote The ending note of the range.
 * @return A list of the notes within the specified range for the given instrument.
 */
fun findNoteRange(instrument: String, startNote: String, endNote: String): List<String> {

    // Define available notes for each instrument
    val notesByInstrument = mapOf(
        "guitar" to listOf("C", "D", "E", "F", "G", "A", "B"),
        "piano" to listOf("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"),
        "flute" to listOf("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C2")
    )

    return notesByInstrument[instrument] ?: listOf("Unknown instrument")
}