/**
 * This function takes a string representing a music sheet and a note to exclude,
 * and returns a list of notes found in the music sheet excluding the excluded note.
 *
 * @param musicSheet The music sheet string to search for notes
 * @param excludeNote The note to exclude from the search
 * @return A list of notes found in the music sheet excluding the excluded note
 */
fun findNotes(musicSheet: String, excludeNote: Char): List<Char> {

    val notes = mutableListOf<Char>()  // Initialize an empty list to store the found notes

    for (char in musicSheet) {  // Iterate through each character in the music sheet
        if (char.isLetter() && char != excludeNote) {  // Check if the character is a letter and not the excluded note
            notes.add(char)  // Append the note to the list
        }
    }

    return notes
}
/**
 * This function takes a string representing a music sheet and a note to exclude,
 * and returns a list of notes found in the music sheet excluding the excluded note.
 *
 * @param musicSheet The music sheet string to search for notes
 * @param excludeNote The note to exclude from the search
 * @return A list of notes found in the music sheet excluding the excluded note
 */
fun findNotes(musicSheet: String, excludeNote: Char): List<Char> {
/**
 * This function takes a string representing a music sheet and a note to exclude,
 * and returns a list of notes found in the music sheet excluding the excluded note.
 *
 * @param musicSheet The music sheet string to search for notes
 * @param excludeNote The note to exclude from the search
 * @return A list of notes found in the music sheet excluding the excluded note
 */
fun findNotes(musicSheet: String, excludeNote: Char): List<Char> {

    val notes = mutableListOf<Char>()  // Initialize an empty list to store the found notes

    for (char in musicSheet) {  // Iterate through each character in the music sheet
        if (char.isLetter() && char != excludeNote) {  // Check if the character is a letter and not the excluded note
            notes.add(char)  // Append the note to the list
        }
    }

    return notes
}