/**
 * This function takes in two sets and returns a new set containing 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<Any>, set2: Set<Any>): Set<Any> {

    // Create an empty set to store the common elements
    val commonElements = mutableSetOf<Any>()

    // Iterate over each element in set1
    for (element in set1) {
        // Check if the element exists 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 returns a new set containing 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<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes in two sets and returns a new set containing 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<Any>, set2: Set<Any>): Set<Any> {

    // Create an empty set to store the common elements
    val commonElements = mutableSetOf<Any>()

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

    return commonElements
}