/**
 * This function takes two sets as input and returns a list containing the common elements between them.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Loop through all elements in set1
    for (element1 in set1) {
        // Loop through all elements in set2
        for (element2 in set2) {
            // Check if the elements are equal
            if (element1 == element2) {
                // Add the common element to the list
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}
/**
 * This function takes two sets as input and returns a list containing the common elements between them.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {
/**
 * This function takes two sets as input and returns a list containing the common elements between them.
 */
fun findCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Loop through all elements in set1
    for (element1 in set1) {
        // Loop through all elements in set2
        for (element2 in set2) {
            // Check if the elements are equal
            if (element1 == element2) {
                // Add the common element to the list
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}