/**
 * This exercise requires you to remove specific elements from a set and update the elements of another set.
 * Given an input set, remove all elements that are divisible by 3 and update the elements of another set
 * by multiplying them by 2.
 *
 * @param inputSet A set of integer elements.
 * @return A Pair containing two sets: the first set with elements removed from the inputSet that are divisible by 3,
 * and the second set with elements updated by multiplying them by 2.
 */
fun removeUpdateSetElements(inputSet: Set<Int>): Pair<Set<Int>, Set<Int>> {

    // Remove elements divisible by 3 from inputSet
    val updatedSet1 = inputSet.filter { it % 3 != 0 }.toSet()

    // Update elements of another set by multiplying them by 2
    val updatedSet2 = inputSet.map { it * 2 }.toSet()

    return Pair(updatedSet1, updatedSet2)
}
/**
 * This exercise requires you to remove specific elements from a set and update the elements of another set.
 * Given an input set, remove all elements that are divisible by 3 and update the elements of another set
 * by multiplying them by 2.
 *
 * @param inputSet A set of integer elements.
 * @return A Pair containing two sets: the first set with elements removed from the inputSet that are divisible by 3,
 * and the second set with elements updated by multiplying them by 2.
 */
fun removeUpdateSetElements(inputSet: Set<Int>): Pair<Set<Int>, Set<Int>> {
/**
 * This exercise requires you to remove specific elements from a set and update the elements of another set.
 * Given an input set, remove all elements that are divisible by 3 and update the elements of another set
 * by multiplying them by 2.
 *
 * @param inputSet A set of integer elements.
 * @return A Pair containing two sets: the first set with elements removed from the inputSet that are divisible by 3,
 * and the second set with elements updated by multiplying them by 2.
 */
fun removeUpdateSetElements(inputSet: Set<Int>): Pair<Set<Int>, Set<Int>> {

    // Remove elements divisible by 3 from inputSet
    val updatedSet1 = inputSet.filter { it % 3 != 0 }.toSet()

    // Update elements of another set by multiplying them by 2
    val updatedSet2 = inputSet.map { it * 2 }.toSet()

    return Pair(updatedSet1, updatedSet2)
}