/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return List of common elements between the sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate over each element in set1
    for (element in set1) {
        // Check if the element is present in set2
        if (element in set2) {
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return List of common elements between the sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 First set
 * @param set2 Second set
 * @return List of common elements between the sets
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate over each element in set1
    for (element in set1) {
        // Check if the element is present in set2
        if (element in set2) {
            commonElements.add(element)
        }
    }

    return commonElements
}