The playlist is in the slice playlist. Write LastSong(playlist) to return the name of the last song. An empty playlist gives "".
LastSong([]string{"Rain", "Sunny", "Moon"})→'Moon'LastSong([]string{})→''func LastSong(playlist []string) stringpackage main
func LastSong(playlist []string) string {
last := ""
// your code here: not empty? put the last song in last
return last
}
Run tries the examples. When they look right, Submit.