/**
 * As a geographer, you are given two sets representing different geographical regions.
 * Your task is to write a function that finds the common elements between these two sets and returns them as a new set.
 *
 * @param set1 The first set containing geographical regions (e.g., countries, cities, etc.)
 * @param set2 The second set containing geographical regions (e.g., countries, cities, etc.)
 * @return A new set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<String>, set2: Set<String>): Set<String> {

    val commonElements = mutableSetOf<String>()

    for (element in set1) {
        if (element in set2) {
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * As a geographer, you are given two sets representing different geographical regions.
 * Your task is to write a function that finds the common elements between these two sets and returns them as a new set.
 *
 * @param set1 The first set containing geographical regions (e.g., countries, cities, etc.)
 * @param set2 The second set containing geographical regions (e.g., countries, cities, etc.)
 * @return A new set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<String>, set2: Set<String>): Set<String> {
/**
 * As a geographer, you are given two sets representing different geographical regions.
 * Your task is to write a function that finds the common elements between these two sets and returns them as a new set.
 *
 * @param set1 The first set containing geographical regions (e.g., countries, cities, etc.)
 * @param set2 The second set containing geographical regions (e.g., countries, cities, etc.)
 * @return A new set containing the common elements between set1 and set2.
 */
fun findCommonElements(set1: Set<String>, set2: Set<String>): Set<String> {

    val commonElements = mutableSetOf<String>()

    for (element in set1) {
        if (element in set2) {
            commonElements.add(element)
        }
    }

    return commonElements
}