/**
 * Given an original list and a set of elements to remove, remove all occurrences of those elements from the list.
 *
 * @param originalList the original list of elements
 * @param elementsToRemove the set of elements to remove
 * @return The modified list with the elements removed
 */
fun removeDuplicates(originalList: List<Any>, elementsToRemove: Set<Any>): List<Any> {

    val modifiedList = mutableListOf<Any>()

    for (element in originalList) {
        if (element !in elementsToRemove) {
            modifiedList.add(element)
        }
    }

    return modifiedList
}
/**
 * Given an original list and a set of elements to remove, remove all occurrences of those elements from the list.
 *
 * @param originalList the original list of elements
 * @param elementsToRemove the set of elements to remove
 * @return The modified list with the elements removed
 */
fun removeDuplicates(originalList: List<Any>, elementsToRemove: Set<Any>): List<Any> {
/**
 * Given an original list and a set of elements to remove, remove all occurrences of those elements from the list.
 *
 * @param originalList the original list of elements
 * @param elementsToRemove the set of elements to remove
 * @return The modified list with the elements removed
 */
fun removeDuplicates(originalList: List<Any>, elementsToRemove: Set<Any>): List<Any> {

    val modifiedList = mutableListOf<Any>()

    for (element in originalList) {
        if (element !in elementsToRemove) {
            modifiedList.add(element)
        }
    }

    return modifiedList
}