/**
 * This function takes two sets as arguments and returns the intersection of those sets.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    // Initialize an empty set to store the intersection
    val intersectionSet = mutableSetOf<Any>()

    // Iterate over each element in set1
    for (element1 in set1) {
        // Check if the current element is present in set2
        if (element1 in set2) {
            // Add the element to the intersectionSet
            intersectionSet.add(element1)
        }
    }

    // Return the intersectionSet
    return intersectionSet
}
/**
 * This function takes two sets as arguments and returns the intersection of those sets.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * This function takes two sets as arguments and returns the intersection of those sets.
 */
fun intersectionOfSets(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    // Initialize an empty set to store the intersection
    val intersectionSet = mutableSetOf<Any>()

    // Iterate over each element in set1
    for (element1 in set1) {
        // Check if the current element is present in set2
        if (element1 in set2) {
            // Add the element to the intersectionSet
            intersectionSet.add(element1)
        }
    }

    // Return the intersectionSet
    return intersectionSet
}