/**
 * You are given two sets, set1 and set2, and an element.
 * Your task is to write a function that adds the element to set1 and set2, but if the element is already present in
 * any of the sets, then skip adding it and move on to the next element using the continue statement.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @param element The element to add to the sets
 * @return Pair of updated set1 and set2 with the element added, if not previously present
 */
fun addElementsToSet(set1: MutableSet<Any>, set2: MutableSet<Any>, element: Any): Pair<MutableSet<Any>, MutableSet<Any>> {

    // Add element to set1 if it is not already present
    if (element !in set1) {
        set1.add(element)
    }

    // Add element to set2 if it is not already present
    if (element !in set2) {
        set2.add(element)
    }

    return Pair(set1, set2)
}
/**
 * You are given two sets, set1 and set2, and an element.
 * Your task is to write a function that adds the element to set1 and set2, but if the element is already present in
 * any of the sets, then skip adding it and move on to the next element using the continue statement.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @param element The element to add to the sets
 * @return Pair of updated set1 and set2 with the element added, if not previously present
 */
fun addElementsToSet(set1: MutableSet<Any>, set2: MutableSet<Any>, element: Any): Pair<MutableSet<Any>, MutableSet<Any>> {
/**
 * You are given two sets, set1 and set2, and an element.
 * Your task is to write a function that adds the element to set1 and set2, but if the element is already present in
 * any of the sets, then skip adding it and move on to the next element using the continue statement.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @param element The element to add to the sets
 * @return Pair of updated set1 and set2 with the element added, if not previously present
 */
fun addElementsToSet(set1: MutableSet<Any>, set2: MutableSet<Any>, element: Any): Pair<MutableSet<Any>, MutableSet<Any>> {

    // Add element to set1 if it is not already present
    if (element !in set1) {
        set1.add(element)
    }

    // Add element to set2 if it is not already present
    if (element !in set2) {
        set2.add(element)
    }

    return Pair(set1, set2)
}