/**
 * Write a function that takes two sets as input and returns the intersection of the two sets.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    // create an empty set to store the intersection
    val intersectionSet = mutableSetOf<Any>()
    
    // loop through set1 and check if each element is in set2
    for (element in set1) {
        if (element in set2) {
            intersectionSet.add(element)
        }
    }
    
    return intersectionSet
}
/**
 * Write a function that takes two sets as input and returns the intersection of the two sets.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * Write a function that takes two sets as input and returns the intersection of the two sets.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    // create an empty set to store the intersection
    val intersectionSet = mutableSetOf<Any>()
    
    // loop through set1 and check if each element is in set2
    for (element in set1) {
        if (element in set2) {
            intersectionSet.add(element)
        }
    }
    
    return intersectionSet
}