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

    val intersection = mutableSetOf<Any>()
    
    for (element in set1) {
        for (item in set2) {
            if (element == item) {
                intersection.add(element)
            }
        }
    }
    
    return intersection
}
/**
 * This function takes two sets as input and returns a new set containing the common elements between them.
 */
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 between them.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

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