/**
 * Given a set of elements belonging to a civil engineer and a list of new elements, add the new elements to the set.
 *
 * @param civilEngineerSet The set of elements belonging to the civil engineer.
 * @param newElements The list of new elements to be added.
 * @return The updated set after adding the new elements.
 */
fun addElementsToSet(civilEngineerSet: MutableSet<String>, newElements: List<String>): MutableSet<String> {

    // Add only the elements from newElements that are not already present in civilEngineerSet
    civilEngineerSet.addAll(newElements.filter { it !in civilEngineerSet })

    return civilEngineerSet
}
/**
 * Given a set of elements belonging to a civil engineer and a list of new elements, add the new elements to the set.
 *
 * @param civilEngineerSet The set of elements belonging to the civil engineer.
 * @param newElements The list of new elements to be added.
 * @return The updated set after adding the new elements.
 */
fun addElementsToSet(civilEngineerSet: MutableSet<String>, newElements: List<String>): MutableSet<String> {
/**
 * Given a set of elements belonging to a civil engineer and a list of new elements, add the new elements to the set.
 *
 * @param civilEngineerSet The set of elements belonging to the civil engineer.
 * @param newElements The list of new elements to be added.
 * @return The updated set after adding the new elements.
 */
fun addElementsToSet(civilEngineerSet: MutableSet<String>, newElements: List<String>): MutableSet<String> {

    // Add only the elements from newElements that are not already present in civilEngineerSet
    civilEngineerSet.addAll(newElements.filter { it !in civilEngineerSet })

    return civilEngineerSet
}