/**
 * Given a set of actors and the name of an actor, remove the actor from the set if their name contains an uppercase letter.
 * Return true if the actor is removed, otherwise return false.
 *
 * @param actors Set of actor names.
 * @param name Name of an actor.
 * @return true if the actor is removed, otherwise false.
 */
fun removeActor(actors: MutableSet<String>, name: String): Boolean {

    for (actor in actors.toMutableList()) {
        if (name in actor) {
            if (name.any { it.isUpperCase() }) {
                actors.remove(actor)
                return true
            }
        }
    }
    return name !in actors
}
/**
 * Given a set of actors and the name of an actor, remove the actor from the set if their name contains an uppercase letter.
 * Return true if the actor is removed, otherwise return false.
 *
 * @param actors Set of actor names.
 * @param name Name of an actor.
 * @return true if the actor is removed, otherwise false.
 */
fun removeActor(actors: MutableSet<String>, name: String): Boolean {
/**
 * Given a set of actors and the name of an actor, remove the actor from the set if their name contains an uppercase letter.
 * Return true if the actor is removed, otherwise return false.
 *
 * @param actors Set of actor names.
 * @param name Name of an actor.
 * @return true if the actor is removed, otherwise false.
 */
fun removeActor(actors: MutableSet<String>, name: String): Boolean {

    for (actor in actors.toMutableList()) {
        if (name in actor) {
            if (name.any { it.isUpperCase() }) {
                actors.remove(actor)
                return true
            }
        }
    }
    return name !in actors
}