/**
 * Reverse a list of notes in a song and return the last n notes.
 *
 * @param song A list of notes in a song.
 * @param n The number of last notes to return.
 * @return The last n notes in the reversed song.
 */
fun getLastNNotes(song: List<String>, n: Int): List<String> {

    val reversedSong = song.reversed()
    return reversedSong.take(n)
}
/**
 * Reverse a list of notes in a song and return the last n notes.
 *
 * @param song A list of notes in a song.
 * @param n The number of last notes to return.
 * @return The last n notes in the reversed song.
 */
fun getLastNNotes(song: List<String>, n: Int): List<String> {
/**
 * Reverse a list of notes in a song and return the last n notes.
 *
 * @param song A list of notes in a song.
 * @param n The number of last notes to return.
 * @return The last n notes in the reversed song.
 */
fun getLastNNotes(song: List<String>, n: Int): List<String> {

    val reversedSong = song.reversed()
    return reversedSong.take(n)
}