/**
 * This function takes two sets as input and returns a new set with only the elements that are 
 * greater than or equal to the smallest element in the first set.
 *
 * @param set1 First input set
 * @param set2 Second input set
 * @return A new set containing the common elements from both sets
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val minElement = set1.minOrNull() ?: throw IllegalArgumentException("Set1 cannot be empty")
    return set2.filter { it >= minElement }.toSet()
}
/**
 * This function takes two sets as input and returns a new set with only the elements that are 
 * greater than or equal to the smallest element in the first set.
 *
 * @param set1 First input set
 * @param set2 Second input set
 * @return A new set containing the common elements from both sets
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function takes two sets as input and returns a new set with only the elements that are 
 * greater than or equal to the smallest element in the first set.
 *
 * @param set1 First input set
 * @param set2 Second input set
 * @return A new set containing the common elements from both sets
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val minElement = set1.minOrNull() ?: throw IllegalArgumentException("Set1 cannot be empty")
    return set2.filter { it >= minElement }.toSet()
}