/**
 * Given an actor and a new name, modify the actor's name and return the modified actor.
 *
 * @param actor A mutable set containing the actor's name.
 * @param newName The new name for the actor.
 * @return A mutable set containing the modified actor's name.
 *
 * Example:
 * modifyActorName(mutableSetOf("Tom Hanks"), "Tom Cruise") => mutableSetOf("Tom Cruise")
 */
fun modifyActorName(actor: MutableSet<String>, newName: String): MutableSet<String> {

    actor.clear()
    actor.add(newName)
    return actor
}
/**
 * Given an actor and a new name, modify the actor's name and return the modified actor.
 *
 * @param actor A mutable set containing the actor's name.
 * @param newName The new name for the actor.
 * @return A mutable set containing the modified actor's name.
 *
 * Example:
 * modifyActorName(mutableSetOf("Tom Hanks"), "Tom Cruise") => mutableSetOf("Tom Cruise")
 */
fun modifyActorName(actor: MutableSet<String>, newName: String): MutableSet<String> {
/**
 * Given an actor and a new name, modify the actor's name and return the modified actor.
 *
 * @param actor A mutable set containing the actor's name.
 * @param newName The new name for the actor.
 * @return A mutable set containing the modified actor's name.
 *
 * Example:
 * modifyActorName(mutableSetOf("Tom Hanks"), "Tom Cruise") => mutableSetOf("Tom Cruise")
 */
fun modifyActorName(actor: MutableSet<String>, newName: String): MutableSet<String> {

    actor.clear()
    actor.add(newName)
    return actor
}