/**
 * Given two sets, 'set1' and 'set2', find the intersection of the elements in both sets
 * using the condition Greater Than and Add elements to a set.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return Intersection of the elements in 'set1' and 'set2'
 */
fun intersectionOfGreaterThanAndAddingElementsToSet(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Create an empty set to store the intersection
    val intersection = mutableSetOf<Int>()

    // Check if the intersection of the elements in 'set1' and 'set2' meets the condition
    for (elem1 in set1) {
        for (elem2 in set2) {
            if (elem1 > elem2) {
                intersection.add(elem1)
            }
        }
    }

    return intersection
}
/**
 * Given two sets, 'set1' and 'set2', find the intersection of the elements in both sets
 * using the condition Greater Than and Add elements to a set.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return Intersection of the elements in 'set1' and 'set2'
 */
fun intersectionOfGreaterThanAndAddingElementsToSet(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * Given two sets, 'set1' and 'set2', find the intersection of the elements in both sets
 * using the condition Greater Than and Add elements to a set.
 *
 * @param set1 First set of elements
 * @param set2 Second set of elements
 * @return Intersection of the elements in 'set1' and 'set2'
 */
fun intersectionOfGreaterThanAndAddingElementsToSet(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Create an empty set to store the intersection
    val intersection = mutableSetOf<Int>()

    // Check if the intersection of the elements in 'set1' and 'set2' meets the condition
    for (elem1 in set1) {
        for (elem2 in set2) {
            if (elem1 > elem2) {
                intersection.add(elem1)
            }
        }
    }

    return intersection
}