/**
 * This function finds the common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val commonElements = mutableSetOf<Int>()
    
    // Find the common elements between set1 and set2
    for (element in set1) {
        // Check if the element is present in set2
        if (element in set2) {
            // Add the element to the commonElements set
            commonElements.add(element)
        }
    }
    
    return commonElements
}
/**
 * This function finds the common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function finds the common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    val commonElements = mutableSetOf<Int>()
    
    // Find the common elements between set1 and set2
    for (element in set1) {
        // Check if the element is present in set2
        if (element in set2) {
            // Add the element to the commonElements set
            commonElements.add(element)
        }
    }
    
    return commonElements
}