/**
 * This function takes in two sets and finds the common elements between them.
 *
 * @param set1 A set of elements
 * @param set2 Another set of elements
 * @return The common elements between the two sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    // Iterate over each element in set1
    for (element in set1) {
        // Check if the element is present in set2
        if (element in set2) {
            // Add the element to the commonElements set
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * This function takes in two sets and finds the common elements between them.
 *
 * @param set1 A set of elements
 * @param set2 Another set of elements
 * @return The common elements between the two sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes in two sets and finds the common elements between them.
 *
 * @param set1 A set of elements
 * @param set2 Another set of elements
 * @return The common elements between the two sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    // Iterate over each element in set1
    for (element in set1) {
        // Check if the element is present in set2
        if (element in set2) {
            // Add the element to the commonElements set
            commonElements.add(element)
        }
    }

    return commonElements
}