/**
 * This function takes two sets 'set1' and 'set2' as input, and returns their intersection.
 */
fun intersection(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val intersectionSet = mutableSetOf<Any>()
    for (element in set1) {
        if (element in set2) {
            intersectionSet.add(element)
        }
    }
    return intersectionSet
}
/**
 * This function takes two sets 'set1' and 'set2' as input, and returns their intersection.
 */
fun intersection(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes two sets 'set1' and 'set2' as input, and returns their intersection.
 */
fun intersection(set1: Set<Any>, set2: Set<Any>): Set<Any> {

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