/**
 * This function retrieves the details of a song by a musician.
 *
 * @param musician A dictionary containing the details of the musician and their songs.
 * @param songTitle The title of the song to retrieve details for.
 * @return A dictionary containing the details of the requested song. Null if the song is not found.
 */
fun getSongDetails(musician: Map<String, Any>, songTitle: String): Map<String, Any>? {

    val songDetails = musician["songs"] as List<Map<String, Any>>?
    if (songDetails != null) {
        for (song in songDetails) {
            if (song["title"] == songTitle) {
                return song
            }
        }
    }
    return null
}
/**
 * This function retrieves the details of a song by a musician.
 *
 * @param musician A dictionary containing the details of the musician and their songs.
 * @param songTitle The title of the song to retrieve details for.
 * @return A dictionary containing the details of the requested song. Null if the song is not found.
 */
fun getSongDetails(musician: Map<String, Any>, songTitle: String): Map<String, Any>? {
/**
 * This function retrieves the details of a song by a musician.
 *
 * @param musician A dictionary containing the details of the musician and their songs.
 * @param songTitle The title of the song to retrieve details for.
 * @return A dictionary containing the details of the requested song. Null if the song is not found.
 */
fun getSongDetails(musician: Map<String, Any>, songTitle: String): Map<String, Any>? {

    val songDetails = musician["songs"] as List<Map<String, Any>>?
    if (songDetails != null) {
        for (song in songDetails) {
            if (song["title"] == songTitle) {
                return song
            }
        }
    }
    return null
}