/**
 * Given two sets, delete the common elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A pair containing the modified sets after deletion.
 *
 * Example:
 * deleteCommonElements(setOf(1, 2, 3), setOf(2, 3, 4))
 * Output: Pair(setOf(1), setOf(4))
 */
fun deleteCommonElements(set1: Set<Int>, set2: Set<Int>): Pair<Set<Int>, Set<Int>> {

    val commonElements = set1.intersect(set2)  // Find the common elements between the two sets
    val modifiedSet1 = set1.minus(commonElements)  // Remove common elements from set1
    val modifiedSet2 = set2.minus(commonElements)  // Remove common elements from set2

    return Pair(modifiedSet1, modifiedSet2)
}
/**
 * Given two sets, delete the common elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A pair containing the modified sets after deletion.
 *
 * Example:
 * deleteCommonElements(setOf(1, 2, 3), setOf(2, 3, 4))
 * Output: Pair(setOf(1), setOf(4))
 */
fun deleteCommonElements(set1: Set<Int>, set2: Set<Int>): Pair<Set<Int>, Set<Int>> {
/**
 * Given two sets, delete the common elements from both sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A pair containing the modified sets after deletion.
 *
 * Example:
 * deleteCommonElements(setOf(1, 2, 3), setOf(2, 3, 4))
 * Output: Pair(setOf(1), setOf(4))
 */
fun deleteCommonElements(set1: Set<Int>, set2: Set<Int>): Pair<Set<Int>, Set<Int>> {

    val commonElements = set1.intersect(set2)  // Find the common elements between the two sets
    val modifiedSet1 = set1.minus(commonElements)  // Remove common elements from set1
    val modifiedSet2 = set2.minus(commonElements)  // Remove common elements from set2

    return Pair(modifiedSet1, modifiedSet2)
}