/**
 * Given a set of economist (integer values) and a threshold value,
 * remove all elements greater than or equal to the threshold from the set.
 *
 * @param economist A set of economist.
 * @param threshold An integer representing the threshold value.
 * @return The updated set of economist after removing elements greater than or equal to the threshold.
 */
fun removeGreaterElements(economist: MutableSet<Int>, threshold: Int): MutableSet<Int> {

    val economistCopy = economist.toMutableSet()
    for (elem in economist) {
        if (elem >= threshold) {
            economistCopy.remove(elem)
        }
    }
    return economistCopy
}
/**
 * Given a set of economist (integer values) and a threshold value,
 * remove all elements greater than or equal to the threshold from the set.
 *
 * @param economist A set of economist.
 * @param threshold An integer representing the threshold value.
 * @return The updated set of economist after removing elements greater than or equal to the threshold.
 */
fun removeGreaterElements(economist: MutableSet<Int>, threshold: Int): MutableSet<Int> {
/**
 * Given a set of economist (integer values) and a threshold value,
 * remove all elements greater than or equal to the threshold from the set.
 *
 * @param economist A set of economist.
 * @param threshold An integer representing the threshold value.
 * @return The updated set of economist after removing elements greater than or equal to the threshold.
 */
fun removeGreaterElements(economist: MutableSet<Int>, threshold: Int): MutableSet<Int> {

    val economistCopy = economist.toMutableSet()
    for (elem in economist) {
        if (elem >= threshold) {
            economistCopy.remove(elem)
        }
    }
    return economistCopy
}