/**
 * This function takes two lists and a set as arguments, and returns a set containing elements present in
 * the set but not in both lists, using list comprehension.
 *
 * @param list1 A list of integers
 * @param list2 A list of integers
 * @param s A set of integers
 * @return A set containing elements present in the set but not in both lists
 */
fun removeCommonElements(list1: List<Int>, list2: List<Int>, s: Set<Int>): Set<Int> {

    // Create a set from list1
    val set1 = list1.toSet()

    // Create a set from list2
    val set2 = list2.toSet()

    // Remove common elements from the set using list comprehension
    val resultSet = s.filter { num -> num !in set1 || num !in set2 }.toSet()

    return resultSet
}
/**
 * This function takes two lists and a set as arguments, and returns a set containing elements present in
 * the set but not in both lists, using list comprehension.
 *
 * @param list1 A list of integers
 * @param list2 A list of integers
 * @param s A set of integers
 * @return A set containing elements present in the set but not in both lists
 */
fun removeCommonElements(list1: List<Int>, list2: List<Int>, s: Set<Int>): Set<Int> {
/**
 * This function takes two lists and a set as arguments, and returns a set containing elements present in
 * the set but not in both lists, using list comprehension.
 *
 * @param list1 A list of integers
 * @param list2 A list of integers
 * @param s A set of integers
 * @return A set containing elements present in the set but not in both lists
 */
fun removeCommonElements(list1: List<Int>, list2: List<Int>, s: Set<Int>): Set<Int> {

    // Create a set from list1
    val set1 = list1.toSet()

    // Create a set from list2
    val set2 = list2.toSet()

    // Remove common elements from the set using list comprehension
    val resultSet = s.filter { num -> num !in set1 || num !in set2 }.toSet()

    return resultSet
}