/**
 * This function takes in two sets, set1 and set2, and finds the common elements between them.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    // Iterate through each element in set1
    for (element1 in set1) {
        // Iterate through each element in set2
        for (element2 in set2) {
            // Check if the current elements are equal
            if (element1 == element2) {
                commonElements.add(element1)
            } else {
                // Do something if the elements are not equal
            }
        }
    }

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

    val commonElements = mutableSetOf<Any>()

    // Iterate through each element in set1
    for (element1 in set1) {
        // Iterate through each element in set2
        for (element2 in set2) {
            // Check if the current elements are equal
            if (element1 == element2) {
                commonElements.add(element1)
            } else {
                // Do something if the elements are not equal
            }
        }
    }

    return commonElements
}