/**
 * Write a function that takes two sets as input and returns the intersection of the two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 *
 * Examples:
 * addElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) // returns setOf(3, 4)
 * addElements(setOf("apple", "banana", "orange"), setOf("orange", "grape", "kiwi")) // returns setOf("orange")
 */
fun addElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    return set1.intersect(set2)
}
/**
 * Write a function that takes two sets as input and returns the intersection of the two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 *
 * Examples:
 * addElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) // returns setOf(3, 4)
 * addElements(setOf("apple", "banana", "orange"), setOf("orange", "grape", "kiwi")) // returns setOf("orange")
 */
fun addElements(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.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The intersection of set1 and set2.
 *
 * Examples:
 * addElements(setOf(1, 2, 3, 4), setOf(3, 4, 5, 6)) // returns setOf(3, 4)
 * addElements(setOf("apple", "banana", "orange"), setOf("orange", "grape", "kiwi")) // returns setOf("orange")
 */
fun addElements(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    return set1.intersect(set2)
}