/**
 * This function adds elements from the given list 'nums' to two different sets 'set1' and 'set2'.
 * The elements are added to 'set1' only if they are not equal to any element in 'set2'.
 *
 * @param nums A list of integers representing the elements to be added.
 * @param set1 A set to which the elements will be added.
 * @param set2 A set used for comparison.
 */
fun addElementsNotEqual(nums: List<Int>, set1: MutableSet<Int>, set2: Set<Int>) {

    for (num in nums) {
        if (num !in set2) {
            set1.add(num)
        }
    }
}
/**
 * This function adds elements from the given list 'nums' to two different sets 'set1' and 'set2'.
 * The elements are added to 'set1' only if they are not equal to any element in 'set2'.
 *
 * @param nums A list of integers representing the elements to be added.
 * @param set1 A set to which the elements will be added.
 * @param set2 A set used for comparison.
 */
fun addElementsNotEqual(nums: List<Int>, set1: MutableSet<Int>, set2: Set<Int>) {
/**
 * This function adds elements from the given list 'nums' to two different sets 'set1' and 'set2'.
 * The elements are added to 'set1' only if they are not equal to any element in 'set2'.
 *
 * @param nums A list of integers representing the elements to be added.
 * @param set1 A set to which the elements will be added.
 * @param set2 A set used for comparison.
 */
fun addElementsNotEqual(nums: List<Int>, set1: MutableSet<Int>, set2: Set<Int>) {

    for (num in nums) {
        if (num !in set2) {
            set1.add(num)
        }
    }
}