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

    val commonElements = mutableListOf<Int>()
    
    // Iterate through the elements in set1
    for (element in set1) {
        
        // Check if the element is also present in set2
        if (element in set2) {
            commonElements.add(element)
        }
    }
    
    return commonElements
}
/**
 * This function takes two sets as input and returns a list of elements that are present in both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): List<Int> {
/**
 * This function takes two sets as input and returns a list of elements that are present in both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A list of common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()
    
    // Iterate through the elements in set1
    for (element in set1) {
        
        // Check if the element is also present in set2
        if (element in set2) {
            commonElements.add(element)
        }
    }
    
    return commonElements
}