/**
 * Given a dictionary of actors and their movies, return a list of movies of the specified actor.
 *
 * @param actors A dictionary mapping actor names to a list of movies.
 * @param actorName The name of the actor.
 * @return A list of movies of the specified actor.
 *
 * Example:
 * val actors = mapOf(
 *     "Leonardo DiCaprio" to listOf("Inception", "The Wolf of Wall Street", "The Revenant"),
 *     "Tom Hanks" to listOf("Forrest Gump", "Saving Private Ryan", "Cast Away"),
 *     "Brad Pitt" to listOf("Fight Club", "Inglourious Basterds", "Once Upon a Time in Hollywood")
 * )
 * getActorsMovies(actors, "Leonardo DiCaprio") ➞ ["Inception", "The Wolf of Wall Street", "The Revenant"]
 */
fun getActorsMovies(actors: Map<String, List<String>>, actorName: String): List<String> {

    return actors[actorName] ?: emptyList()
}
/**
 * Given a dictionary of actors and their movies, return a list of movies of the specified actor.
 *
 * @param actors A dictionary mapping actor names to a list of movies.
 * @param actorName The name of the actor.
 * @return A list of movies of the specified actor.
 *
 * Example:
 * val actors = mapOf(
 *     "Leonardo DiCaprio" to listOf("Inception", "The Wolf of Wall Street", "The Revenant"),
 *     "Tom Hanks" to listOf("Forrest Gump", "Saving Private Ryan", "Cast Away"),
 *     "Brad Pitt" to listOf("Fight Club", "Inglourious Basterds", "Once Upon a Time in Hollywood")
 * )
 * getActorsMovies(actors, "Leonardo DiCaprio") ➞ ["Inception", "The Wolf of Wall Street", "The Revenant"]
 */
fun getActorsMovies(actors: Map<String, List<String>>, actorName: String): List<String> {
/**
 * Given a dictionary of actors and their movies, return a list of movies of the specified actor.
 *
 * @param actors A dictionary mapping actor names to a list of movies.
 * @param actorName The name of the actor.
 * @return A list of movies of the specified actor.
 *
 * Example:
 * val actors = mapOf(
 *     "Leonardo DiCaprio" to listOf("Inception", "The Wolf of Wall Street", "The Revenant"),
 *     "Tom Hanks" to listOf("Forrest Gump", "Saving Private Ryan", "Cast Away"),
 *     "Brad Pitt" to listOf("Fight Club", "Inglourious Basterds", "Once Upon a Time in Hollywood")
 * )
 * getActorsMovies(actors, "Leonardo DiCaprio") ➞ ["Inception", "The Wolf of Wall Street", "The Revenant"]
 */
fun getActorsMovies(actors: Map<String, List<String>>, actorName: String): List<String> {

    return actors[actorName] ?: emptyList()
}