/**
 * Given two sets, remove all the common elements from the first set.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The first set after removing all the common elements.
 *
 * Example:
 * '``
 * val set1 = setOf(1, 2, 3, 4, 5)
 * val set2 = setOf(4, 5, 6, 7, 8)
 * println(removeCommonElements(set1, set2)) // Output: [1, 2, 3]
 * '``
 */
fun removeCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.minus(set1.intersect(set2)) // Remove common elements from the first set
}
/**
 * Given two sets, remove all the common elements from the first set.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The first set after removing all the common elements.
 *
 * Example:
 * '``
 * val set1 = setOf(1, 2, 3, 4, 5)
 * val set2 = setOf(4, 5, 6, 7, 8)
 * println(removeCommonElements(set1, set2)) // Output: [1, 2, 3]
 * '``
 */
fun removeCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * Given two sets, remove all the common elements from the first set.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The first set after removing all the common elements.
 *
 * Example:
 * '``
 * val set1 = setOf(1, 2, 3, 4, 5)
 * val set2 = setOf(4, 5, 6, 7, 8)
 * println(removeCommonElements(set1, set2)) // Output: [1, 2, 3]
 * '``
 */
fun removeCommonElements(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.minus(set1.intersect(set2)) // Remove common elements from the first set
}