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

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

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