/**
 * Given two sets, find the common elements and return a new set.
 *
 * @param set1 the first set
 * @param set2 the second set
 * @return A new set containing the common elements between set1 and set2.
 */
fun findCommonItems(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    // Solution 1: Using 'not in' operator
    // Add elements from set1 to commonElements set
    for (item in set1) {
        if (item !in set2) {
            commonElements.add(item)
        }
    }

    return commonElements
}
/**
 * Given two sets, find the common elements and return a new set.
 *
 * @param set1 the first set
 * @param set2 the second set
 * @return A new set containing the common elements between set1 and set2.
 */
fun findCommonItems(set1: Set<Any>, set2: Set<Any>): Set<Any> {
/**
 * Given two sets, find the common elements and return a new set.
 *
 * @param set1 the first set
 * @param set2 the second set
 * @return A new set containing the common elements between set1 and set2.
 */
fun findCommonItems(set1: Set<Any>, set2: Set<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    // Solution 1: Using 'not in' operator
    // Add elements from set1 to commonElements set
    for (item in set1) {
        if (item !in set2) {
            commonElements.add(item)
        }
    }

    return commonElements
}