/**
 * Given a list of notes, find the index of the first occurrence of the specified key.
 *
 * @param notes A list of strings representing musical notes.
 * @param key A string representing the key to search for.
 * @return The index of the first occurrence of the key in the notes list.
 *         If the key is not found, return -1.
 */
fun findNoteKey(notes: List<String>, key: String): Int {

    for ((index, note) in notes.withIndex()) {
        if (note == key) {
            return index
        }
    }
    return -1
}
/**
 * Given a list of notes, find the index of the first occurrence of the specified key.
 *
 * @param notes A list of strings representing musical notes.
 * @param key A string representing the key to search for.
 * @return The index of the first occurrence of the key in the notes list.
 *         If the key is not found, return -1.
 */
fun findNoteKey(notes: List<String>, key: String): Int {
/**
 * Given a list of notes, find the index of the first occurrence of the specified key.
 *
 * @param notes A list of strings representing musical notes.
 * @param key A string representing the key to search for.
 * @return The index of the first occurrence of the key in the notes list.
 *         If the key is not found, return -1.
 */
fun findNoteKey(notes: List<String>, key: String): Int {

    for ((index, note) in notes.withIndex()) {
        if (note == key) {
            return index
        }
    }
    return -1
}