/**
 * Given a name and a list of movies, return a string containing the name of the actor/actress, followed by a colon (:), and then the last word of each movie in reverse order.
 *
 * @param name The name of the actor/actress.
 * @param movies A list of movies.
 * @return A string containing the name of the actor/actress and the last word of each movie in reverse order.
 */
fun actorActress(name: String, movies: List<String>): String {

    var result = ""
    for (movie in movies) {
        val lastWord = movie.split(" ").last().reversed()
        result += lastWord
    }
    return "$name: $result"
}

// Example usage
/**
 * Given a name and a list of movies, return a string containing the name of the actor/actress, followed by a colon (:), and then the last word of each movie in reverse order.
 *
 * @param name The name of the actor/actress.
 * @param movies A list of movies.
 * @return A string containing the name of the actor/actress and the last word of each movie in reverse order.
 */
fun actorActress(name: String, movies: List<String>): String {
/**
 * Given a name and a list of movies, return a string containing the name of the actor/actress, followed by a colon (:), and then the last word of each movie in reverse order.
 *
 * @param name The name of the actor/actress.
 * @param movies A list of movies.
 * @return A string containing the name of the actor/actress and the last word of each movie in reverse order.
 */
fun actorActress(name: String, movies: List<String>): String {

    var result = ""
    for (movie in movies) {
        val lastWord = movie.split(" ").last().reversed()
        result += lastWord
    }
    return "$name: $result"
}

// Example usage