/**
 * Given a list of notes played by a musician and the musical scale, this function finds the notes that are missing.
 *
 * @param notes A list of notes played by the musician. Each note is represented as a string.
 * @param scale A list of notes in a musical scale. Each note is represented as a string.
 * @return A list of notes that are missing from the musician's played notes.
 *
 * Example:
 * findMissingNotes(listOf("C", "D", "E", "G"), listOf("C", "D", "E", "F", "G", "A", "B")) returns ['F', 'A', 'B']
 */
fun findMissingNotes(notes: List<String>, scale: List<String>): List<String> {

    val missingNotes = mutableListOf<String>()
    for (note in scale) {
        if (note !in notes) {
            missingNotes.add(note)
        }
    }
    return missingNotes
}
/**
 * Given a list of notes played by a musician and the musical scale, this function finds the notes that are missing.
 *
 * @param notes A list of notes played by the musician. Each note is represented as a string.
 * @param scale A list of notes in a musical scale. Each note is represented as a string.
 * @return A list of notes that are missing from the musician's played notes.
 *
 * Example:
 * findMissingNotes(listOf("C", "D", "E", "G"), listOf("C", "D", "E", "F", "G", "A", "B")) returns ['F', 'A', 'B']
 */
fun findMissingNotes(notes: List<String>, scale: List<String>): List<String> {
/**
 * Given a list of notes played by a musician and the musical scale, this function finds the notes that are missing.
 *
 * @param notes A list of notes played by the musician. Each note is represented as a string.
 * @param scale A list of notes in a musical scale. Each note is represented as a string.
 * @return A list of notes that are missing from the musician's played notes.
 *
 * Example:
 * findMissingNotes(listOf("C", "D", "E", "G"), listOf("C", "D", "E", "F", "G", "A", "B")) returns ['F', 'A', 'B']
 */
fun findMissingNotes(notes: List<String>, scale: List<String>): List<String> {

    val missingNotes = mutableListOf<String>()
    for (note in scale) {
        if (note !in notes) {
            missingNotes.add(note)
        }
    }
    return missingNotes
}