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

    val commonElements = mutableListOf<Int>()

    for (element1 in set1) {
        for (element2 in set2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}

// Find the common elements between two sets using the AND operator
/**
 * This function takes two sets as input and returns the common elements between them.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): List<Int> {
/**
 * This function takes two sets as input and returns the common elements between them.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (element1 in set1) {
        for (element2 in set2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}

// Find the common elements between two sets using the AND operator