/**
 * Removes the given elements from the marketing list using a while loop.
 *
 * @param marketingList The set containing the marketing elements.
 * @param elementsToRemove The set containing elements to be removed.
 * @return The marketing list with specified elements removed.
 */
fun removeElements(marketingList: MutableSet<String>, elementsToRemove: Set<String>): MutableSet<String> {

    val iterator = elementsToRemove.iterator()
    while (iterator.hasNext()) {
        val element = iterator.next()
        if (marketingList.contains(element)) {
            marketingList.remove(element)
        }
    }
    return marketingList
}

// Example usage
/**
 * Removes the given elements from the marketing list using a while loop.
 *
 * @param marketingList The set containing the marketing elements.
 * @param elementsToRemove The set containing elements to be removed.
 * @return The marketing list with specified elements removed.
 */
fun removeElements(marketingList: MutableSet<String>, elementsToRemove: Set<String>): MutableSet<String> {
/**
 * Removes the given elements from the marketing list using a while loop.
 *
 * @param marketingList The set containing the marketing elements.
 * @param elementsToRemove The set containing elements to be removed.
 * @return The marketing list with specified elements removed.
 */
fun removeElements(marketingList: MutableSet<String>, elementsToRemove: Set<String>): MutableSet<String> {

    val iterator = elementsToRemove.iterator()
    while (iterator.hasNext()) {
        val element = iterator.next()
        if (marketingList.contains(element)) {
            marketingList.remove(element)
        }
    }
    return marketingList
}

// Example usage