/**
 * This function takes in two sets and returns a list of elements that are common to both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of elements that are common to both sets.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (element in set1) {
        if (element !in set2) {
            continue
        }

        commonElements.add(element)
    }

    return commonElements
}
/**
 * This function takes in two sets and returns a list of elements that are common to both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of elements that are common to both sets.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {
/**
 * This function takes in two sets and returns a list of elements that are common to both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of elements that are common to both sets.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (element in set1) {
        if (element !in set2) {
            continue
        }

        commonElements.add(element)
    }

    return commonElements
}