/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<*>, set2: Set<*>): Set<*> {

    // Use the intersect() function to find the common elements
    val commonElements = set1.intersect(set2)

    return commonElements
}
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<*>, set2: Set<*>): Set<*> {
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<*>, set2: Set<*>): Set<*> {

    // Use the intersect() function to find the common elements
    val commonElements = set1.intersect(set2)

    return commonElements
}