/**
 * Given two sets, count the number of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The count of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<String>, set2: Set<String>): Int {

    var commonElements = 0

    // Iterate through each element in set1
    for (element in set1) {
        // Check if the element is also present in set2
        if (element in set2) {
            // Increment the count of common elements
            commonElements++
        }
    }

    return commonElements
}
/**
 * Given two sets, count the number of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The count of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<String>, set2: Set<String>): Int {
/**
 * Given two sets, count the number of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The count of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<String>, set2: Set<String>): Int {

    var commonElements = 0

    // Iterate through each element in set1
    for (element in set1) {
        // Check if the element is also present in set2
        if (element in set2) {
            // Increment the count of common elements
            commonElements++
        }
    }

    return commonElements
}