/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 a set containing elements of type String
 * @param set2 a set containing elements of type String
 * @return a set containing the common elements between set1 and set2
 */
fun findCommonElements(set1: Set<String>, set2: Set<String>): Set<String> {

    val commonElements = mutableSetOf<String>() // Create a mutable set to store the common elements

    // Iterate over each element in set1
    for (element1 in set1) {
        // Iterate over each element in set2
        for (element2 in set2) {
            // If the current elements are equal, add it to the commonElements set
            if (element1 == element2) {
                commonElements.add(element1)
                // Break out of the inner loop
                break
            }
        }
    }

    return commonElements.toSet()
}
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 a set containing elements of type String
 * @param set2 a set containing elements of type String
 * @return a set containing the common elements between set1 and set2
 */
fun findCommonElements(set1: Set<String>, set2: Set<String>): Set<String> {
/**
 * Given two sets, find the common elements between them.
 *
 * @param set1 a set containing elements of type String
 * @param set2 a set containing elements of type String
 * @return a set containing the common elements between set1 and set2
 */
fun findCommonElements(set1: Set<String>, set2: Set<String>): Set<String> {

    val commonElements = mutableSetOf<String>() // Create a mutable set to store the common elements

    // Iterate over each element in set1
    for (element1 in set1) {
        // Iterate over each element in set2
        for (element2 in set2) {
            // If the current elements are equal, add it to the commonElements set
            if (element1 == element2) {
                commonElements.add(element1)
                // Break out of the inner loop
                break
            }
        }
    }

    return commonElements.toSet()
}