/**
 * This function takes two sets as input and returns a new set containing the common elements in both sets.
 *
 * @param set1 A set containing elements.
 * @param set2 A set containing elements.
 * @return A set of common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()
    for (element in set1) {
        if (element in set2) {
            commonElements.add(element)
        }
    }
    return commonElements
}
/**
 * This function takes two sets as input and returns a new set containing the common elements in both sets.
 *
 * @param set1 A set containing elements.
 * @param set2 A set containing elements.
 * @return A set of common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes two sets as input and returns a new set containing the common elements in both sets.
 *
 * @param set1 A set containing elements.
 * @param set2 A set containing elements.
 * @return A set of common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()
    for (element in set1) {
        if (element in set2) {
            commonElements.add(element)
        }
    }
    return commonElements
}