/**
 * This function takes the name of an actor/actress as input
 * and returns the filmography of that actor/actress if it exists.
 * Otherwise, it raises an error indicating that the actor/actress
 * does not have any filmography available.
 */
fun getFilmography(actorName: String): List<String> {

    val actorFilmography = mapOf(
        "Tom Hanks" to listOf("Forrest Gump", "Saving Private Ryan", "Cast Away"),
        "Meryl Streep" to listOf("The Devil Wears Prada", "Mamma Mia!", "Sophie's Choice"),
        "Leonardo DiCaprio" to listOf("Titanic", "The Revenant", "Inception")
    )

    return actorFilmography[actorName] ?: throw IllegalArgumentException("No filmography available for $actorName")
}
/**
 * This function takes the name of an actor/actress as input
 * and returns the filmography of that actor/actress if it exists.
 * Otherwise, it raises an error indicating that the actor/actress
 * does not have any filmography available.
 */
fun getFilmography(actorName: String): List<String> {
/**
 * This function takes the name of an actor/actress as input
 * and returns the filmography of that actor/actress if it exists.
 * Otherwise, it raises an error indicating that the actor/actress
 * does not have any filmography available.
 */
fun getFilmography(actorName: String): List<String> {

    val actorFilmography = mapOf(
        "Tom Hanks" to listOf("Forrest Gump", "Saving Private Ryan", "Cast Away"),
        "Meryl Streep" to listOf("The Devil Wears Prada", "Mamma Mia!", "Sophie's Choice"),
        "Leonardo DiCaprio" to listOf("Titanic", "The Revenant", "Inception")
    )

    return actorFilmography[actorName] ?: throw IllegalArgumentException("No filmography available for $actorName")
}