/**
 * Given the actor list and a new name, replace the current name of the actor with the new name.
 *
 * @param actor A list containing the name of an actor.
 * @param newName The new name to replace the current name.
 * @return The modified actor list with the new name.
 */
fun modifyActorName(actor: MutableList<String>, newName: String): List<String> {

    // Iterate over the indices of the actor list
    for (i in actor.indices) {
        // Modify the name at the current index
        actor[i] = newName
    }
    return actor
}
/**
 * Given the actor list and a new name, replace the current name of the actor with the new name.
 *
 * @param actor A list containing the name of an actor.
 * @param newName The new name to replace the current name.
 * @return The modified actor list with the new name.
 */
fun modifyActorName(actor: MutableList<String>, newName: String): List<String> {
/**
 * Given the actor list and a new name, replace the current name of the actor with the new name.
 *
 * @param actor A list containing the name of an actor.
 * @param newName The new name to replace the current name.
 * @return The modified actor list with the new name.
 */
fun modifyActorName(actor: MutableList<String>, newName: String): List<String> {

    // Iterate over the indices of the actor list
    for (i in actor.indices) {
        // Modify the name at the current index
        actor[i] = newName
    }
    return actor
}