/**
 * Find the common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The set of common elements between set1 and set2.
 */
fun commonElements(set1: Set<*>, set2: Set<*>): Set<*> {

    // Use the intersect operator to find common elements
    val common = set1.intersect(set2)
    return common
}
/**
 * Find the common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The set of common elements between set1 and set2.
 */
fun commonElements(set1: Set<*>, set2: Set<*>): Set<*> {
/**
 * Find the common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The set of common elements between set1 and set2.
 */
fun commonElements(set1: Set<*>, set2: Set<*>): Set<*> {

    // Use the intersect operator to find common elements
    val common = set1.intersect(set2)
    return common
}