/**
 * Given three sets: existingDesigns, newDesigns, and removedDesigns, this function updates the designs of a fashion designer.
 *
 * @param existingDesigns A set containing the existing designs of the fashion designer.
 * @param newDesigns A set containing the new designs to be added.
 * @param removedDesigns A set containing the designs to be removed from the existingDesigns.
 * @return A set containing the updated designs after appending and removing elements.
 *
 * Example:
 * existingDesigns = setOf("dress", "shirt", "pants")
 * newDesigns = setOf("gown", "blouse")
 * removedDesigns = setOf("pants", "dress")
 * updateDesigns(existingDesigns, newDesigns, removedDesigns) // Output: setOf("shirt", "blouse", "gown")
 */
fun updateDesigns(existingDesigns: MutableSet<String>, newDesigns: Set<String>, removedDesigns: Set<String>): MutableSet<String> {

    // Append new designs
    existingDesigns.addAll(newDesigns)

    // Remove designs from existing
    existingDesigns.removeAll(removedDesigns)

    return existingDesigns
}
/**
 * Given three sets: existingDesigns, newDesigns, and removedDesigns, this function updates the designs of a fashion designer.
 *
 * @param existingDesigns A set containing the existing designs of the fashion designer.
 * @param newDesigns A set containing the new designs to be added.
 * @param removedDesigns A set containing the designs to be removed from the existingDesigns.
 * @return A set containing the updated designs after appending and removing elements.
 *
 * Example:
 * existingDesigns = setOf("dress", "shirt", "pants")
 * newDesigns = setOf("gown", "blouse")
 * removedDesigns = setOf("pants", "dress")
 * updateDesigns(existingDesigns, newDesigns, removedDesigns) // Output: setOf("shirt", "blouse", "gown")
 */
fun updateDesigns(existingDesigns: MutableSet<String>, newDesigns: Set<String>, removedDesigns: Set<String>): MutableSet<String> {
/**
 * Given three sets: existingDesigns, newDesigns, and removedDesigns, this function updates the designs of a fashion designer.
 *
 * @param existingDesigns A set containing the existing designs of the fashion designer.
 * @param newDesigns A set containing the new designs to be added.
 * @param removedDesigns A set containing the designs to be removed from the existingDesigns.
 * @return A set containing the updated designs after appending and removing elements.
 *
 * Example:
 * existingDesigns = setOf("dress", "shirt", "pants")
 * newDesigns = setOf("gown", "blouse")
 * removedDesigns = setOf("pants", "dress")
 * updateDesigns(existingDesigns, newDesigns, removedDesigns) // Output: setOf("shirt", "blouse", "gown")
 */
fun updateDesigns(existingDesigns: MutableSet<String>, newDesigns: Set<String>, removedDesigns: Set<String>): MutableSet<String> {

    // Append new designs
    existingDesigns.addAll(newDesigns)

    // Remove designs from existing
    existingDesigns.removeAll(removedDesigns)

    return existingDesigns
}