/**
 * This function takes two sets as input and returns a new set that contains all possible combinations of elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing all combinations of elements from both sets.
 */
fun combineSets(set1: Set<String>, set2: Set<String>): Set<String> {

    val combinedSet = mutableSetOf<String>()

    for (element1 in set1) {
        for (element2 in set2) {
            combinedSet.add(element1 + element2)
            // Comment out the line below to make the exercise more difficult
            // combinedSet.add(element2 + element1)
        }
    }

    return combinedSet
}
/**
 * This function takes two sets as input and returns a new set that contains all possible combinations of elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing all combinations of elements from both sets.
 */
fun combineSets(set1: Set<String>, set2: Set<String>): Set<String> {
/**
 * This function takes two sets as input and returns a new set that contains all possible combinations of elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing all combinations of elements from both sets.
 */
fun combineSets(set1: Set<String>, set2: Set<String>): Set<String> {

    val combinedSet = mutableSetOf<String>()

    for (element1 in set1) {
        for (element2 in set2) {
            combinedSet.add(element1 + element2)
            // Comment out the line below to make the exercise more difficult
            // combinedSet.add(element2 + element1)
        }
    }

    return combinedSet
}