/**
 * This function takes in a set of aerospace data and a list of elements to remove.
 * It removes these elements from the set and returns the updated set.
 *
 * @param aerospaceData Set of aerospace data.
 * @param elementsToRemove List of elements to remove from the set.
 * @return Updated set after removing specified elements.
 */
fun removeSetElements(aerospaceData: Set<String>, elementsToRemove: List<String>): Set<String> {

    // Convert the set to a mutable list for easier processing
    val aerospaceList = aerospaceData.toMutableList()

    // Iterate through the list of elements to remove
    for (element in elementsToRemove) {
        // Check if the element exists in the aerospace list
        if (element in aerospaceList) {
            // Remove the element from the aerospace list
            aerospaceList.remove(element)
        }
    }

    // Convert the updated list back to a set
    return aerospaceList.toSet()
}
/**
 * This function takes in a set of aerospace data and a list of elements to remove.
 * It removes these elements from the set and returns the updated set.
 *
 * @param aerospaceData Set of aerospace data.
 * @param elementsToRemove List of elements to remove from the set.
 * @return Updated set after removing specified elements.
 */
fun removeSetElements(aerospaceData: Set<String>, elementsToRemove: List<String>): Set<String> {
/**
 * This function takes in a set of aerospace data and a list of elements to remove.
 * It removes these elements from the set and returns the updated set.
 *
 * @param aerospaceData Set of aerospace data.
 * @param elementsToRemove List of elements to remove from the set.
 * @return Updated set after removing specified elements.
 */
fun removeSetElements(aerospaceData: Set<String>, elementsToRemove: List<String>): Set<String> {

    // Convert the set to a mutable list for easier processing
    val aerospaceList = aerospaceData.toMutableList()

    // Iterate through the list of elements to remove
    for (element in elementsToRemove) {
        // Check if the element exists in the aerospace list
        if (element in aerospaceList) {
            // Remove the element from the aerospace list
            aerospaceList.remove(element)
        }
    }

    // Convert the updated list back to a set
    return aerospaceList.toSet()
}