/**
 * Given two sets, iterate through their intersection and print each element.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 */
fun iterateThroughSets(set1: Set<Any>, set2: Set<Any>) {

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)

    // Iterate through the intersection and print each element
    for (element in intersection) {
        println(element)
    }
}
/**
 * Given two sets, iterate through their intersection and print each element.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 */
fun iterateThroughSets(set1: Set<Any>, set2: Set<Any>) {
/**
 * Given two sets, iterate through their intersection and print each element.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 */
fun iterateThroughSets(set1: Set<Any>, set2: Set<Any>) {

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)

    // Iterate through the intersection and print each element
    for (element in intersection) {
        println(element)
    }
}