/**
 * This function takes two sets as input and returns a list of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of common elements.
 *
 * Example:
 * findCommonElements(setOf(1, 2, 3), setOf(2, 3, 4)) // [2, 3]
 */
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
}
/**
 * This function takes two sets as input and returns a list of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of common elements.
 *
 * Example:
 * findCommonElements(setOf(1, 2, 3), setOf(2, 3, 4)) // [2, 3]
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): List<Int> {
/**
 * This function takes two sets as input and returns a list of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of common elements.
 *
 * Example:
 * findCommonElements(setOf(1, 2, 3), setOf(2, 3, 4)) // [2, 3]
 */
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
}