/**
 * Given a set of characters in [actor] and another set of characters in [actress],
 * remove the characters that are present in both sets without modifying the original sets.
 * Return the modified [actor] set after removing the common characters.
 *
 * @param actor A set of characters representing the actor.
 * @param actress A set of characters representing the actress.
 * @return Modified [actor] set after removing the common characters.
 *
 * Examples:
 * actor = setOf('B', 'C', 'D', 'E', 'G')
 * actress = setOf('A', 'B', 'D', 'F', 'G')
 * removeCommonCharacters(actor, actress) -> setOf('C', 'E')
 */
fun removeCommonCharacters(actor: Set<Char>, actress: Set<Char>): Set<Char> {

    // Create copies of the sets without modifying the original sets
    val actorCopy = actor.toMutableSet()
    val actressCopy = actress.toMutableSet()

    // Remove common characters between the sets
    actorCopy -= actressCopy

    return actorCopy
}
/**
 * Given a set of characters in [actor] and another set of characters in [actress],
 * remove the characters that are present in both sets without modifying the original sets.
 * Return the modified [actor] set after removing the common characters.
 *
 * @param actor A set of characters representing the actor.
 * @param actress A set of characters representing the actress.
 * @return Modified [actor] set after removing the common characters.
 *
 * Examples:
 * actor = setOf('B', 'C', 'D', 'E', 'G')
 * actress = setOf('A', 'B', 'D', 'F', 'G')
 * removeCommonCharacters(actor, actress) -> setOf('C', 'E')
 */
fun removeCommonCharacters(actor: Set<Char>, actress: Set<Char>): Set<Char> {
/**
 * Given a set of characters in [actor] and another set of characters in [actress],
 * remove the characters that are present in both sets without modifying the original sets.
 * Return the modified [actor] set after removing the common characters.
 *
 * @param actor A set of characters representing the actor.
 * @param actress A set of characters representing the actress.
 * @return Modified [actor] set after removing the common characters.
 *
 * Examples:
 * actor = setOf('B', 'C', 'D', 'E', 'G')
 * actress = setOf('A', 'B', 'D', 'F', 'G')
 * removeCommonCharacters(actor, actress) -> setOf('C', 'E')
 */
fun removeCommonCharacters(actor: Set<Char>, actress: Set<Char>): Set<Char> {

    // Create copies of the sets without modifying the original sets
    val actorCopy = actor.toMutableSet()
    val actressCopy = actress.toMutableSet()

    // Remove common characters between the sets
    actorCopy -= actressCopy

    return actorCopy
}