/**
 * This function takes two sets as input and returns a new set 
 * that contains the intersection of the elements present in both sets.
 */
fun findIntersectionSet(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersectionSet = mutableSetOf<Any>()

    // Iterate through set1 and check if each element is present in set2
    for (element in set1) {
        if (element in set2) {
            intersectionSet.add(element)
        }
    }

    return intersectionSet
}
/**
 * This function takes two sets as input and returns a new set 
 * that contains the intersection of the elements present in both sets.
 */
fun findIntersectionSet(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes two sets as input and returns a new set 
 * that contains the intersection of the elements present in both sets.
 */
fun findIntersectionSet(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersectionSet = mutableSetOf<Any>()

    // Iterate through set1 and check if each element is present in set2
    for (element in set1) {
        if (element in set2) {
            intersectionSet.add(element)
        }
    }

    return intersectionSet
}