/**
 * The function finds the common elements between two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return A set containing the elements present in both sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (element1 in set1) {
        for (element2 in set2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}
/**
 * The function finds the common elements between two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return A set containing the elements present in both sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * The function finds the common elements between two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return A set containing the elements present in both sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (element1 in set1) {
        for (element2 in set2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}