/**
 * This function takes a musician's name and a playlist, and returns a list
 * of songs performed by the given musician.
 *
 * @param musician The name of the musician.
 * @param playlist A nested list containing songs performed by different musicians.
 * @return A list of songs performed by the given musician.
 */
fun allSongs(musician: String, playlist: List<List<Any>>): List<String> {

    val songs = mutableListOf<String>()

    for (artistSongs in playlist) {
        if (artistSongs[0] == musician) {
            for (song in artistSongs[1] as List<String>) {
                if (song.length > 5 && song.startsWith("B") && song.endsWith("e")) {
                    songs.add(song)
                }
            }
        }
    }

    return songs
}
/**
 * This function takes a musician's name and a playlist, and returns a list
 * of songs performed by the given musician.
 *
 * @param musician The name of the musician.
 * @param playlist A nested list containing songs performed by different musicians.
 * @return A list of songs performed by the given musician.
 */
fun allSongs(musician: String, playlist: List<List<Any>>): List<String> {
/**
 * This function takes a musician's name and a playlist, and returns a list
 * of songs performed by the given musician.
 *
 * @param musician The name of the musician.
 * @param playlist A nested list containing songs performed by different musicians.
 * @return A list of songs performed by the given musician.
 */
fun allSongs(musician: String, playlist: List<List<Any>>): List<String> {

    val songs = mutableListOf<String>()

    for (artistSongs in playlist) {
        if (artistSongs[0] == musician) {
            for (song in artistSongs[1] as List<String>) {
                if (song.length > 5 && song.startsWith("B") && song.endsWith("e")) {
                    songs.add(song)
                }
            }
        }
    }

    return songs
}