/**
 * Computes the union of two sets using the plus assignment operator.
 *
 * @param set1 the first set
 * @param set2 the second set
 * @return A new set that contains the elements from both sets, without duplicates.
 *
 * Example:
 * val set1 = mutableSetOf(1, 2, 3)
 * val set2 = mutableSetOf(3, 4, 5)
 * unionOfSets(set1, set2) should return [1, 2, 3, 4, 5]
 */
fun unionOfSets(set1: MutableSet<Int>, set2: MutableSet<Int>): MutableSet<Int> {

    set1 += set2
    return set1
}
/**
 * Computes the union of two sets using the plus assignment operator.
 *
 * @param set1 the first set
 * @param set2 the second set
 * @return A new set that contains the elements from both sets, without duplicates.
 *
 * Example:
 * val set1 = mutableSetOf(1, 2, 3)
 * val set2 = mutableSetOf(3, 4, 5)
 * unionOfSets(set1, set2) should return [1, 2, 3, 4, 5]
 */
fun unionOfSets(set1: MutableSet<Int>, set2: MutableSet<Int>): MutableSet<Int> {
/**
 * Computes the union of two sets using the plus assignment operator.
 *
 * @param set1 the first set
 * @param set2 the second set
 * @return A new set that contains the elements from both sets, without duplicates.
 *
 * Example:
 * val set1 = mutableSetOf(1, 2, 3)
 * val set2 = mutableSetOf(3, 4, 5)
 * unionOfSets(set1, set2) should return [1, 2, 3, 4, 5]
 */
fun unionOfSets(set1: MutableSet<Int>, set2: MutableSet<Int>): MutableSet<Int> {

    set1 += set2
    return set1
}