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

    val commonElements = mutableSetOf<Any>()

    for (element1 in set1) {   // Looping through the elements of set1
        for (element2 in set2) {   // Looping through the elements of set2
            if (element1 == element2) {   // Checking if the elements are equal
                commonElements.add(element1)   // Adding the common element to the set
            }
        }
    }

    return commonElements.toSet()
}
/**
 * This function takes two sets as input and returns a set containing the common elements found in both sets.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes two sets as input and returns a set containing the common elements found in both sets.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (element1 in set1) {   // Looping through the elements of set1
        for (element2 in set2) {   // Looping through the elements of set2
            if (element1 == element2) {   // Checking if the elements are equal
                commonElements.add(element1)   // Adding the common element to the set
            }
        }
    }

    return commonElements.toSet()
}