/**
 * Given a set 's', an integer 'n', and a tuple 't', remove all elements from the set that are present in the tuple.
 * Return the updated set after removing the elements.
 *
 * @param s A set containing elements.
 * @param n An integer representing the length of the tuple.
 * @param t A tuple containing elements.
 * @return Updated set after removing elements present in the tuple.
 *
 * Example:
 * removeElementsFromSet(setOf(1, 2, 3, 4, 5), 3, setOf(4, 5, 6)) -> setOf(1, 2, 3)
 */
fun removeElementsFromSet(s: MutableSet<Int>, n: Int, t: Set<Int>): MutableSet<Int> {

    // Convert the tuple to a set
    val tSet = t.toMutableSet()
    
    // Iterate over the set and remove elements
    for (element in s.toSet()) {
        if (element in tSet) {
            s.remove(element)
        }
    }
    
    return s
}
/**
 * Given a set 's', an integer 'n', and a tuple 't', remove all elements from the set that are present in the tuple.
 * Return the updated set after removing the elements.
 *
 * @param s A set containing elements.
 * @param n An integer representing the length of the tuple.
 * @param t A tuple containing elements.
 * @return Updated set after removing elements present in the tuple.
 *
 * Example:
 * removeElementsFromSet(setOf(1, 2, 3, 4, 5), 3, setOf(4, 5, 6)) -> setOf(1, 2, 3)
 */
fun removeElementsFromSet(s: MutableSet<Int>, n: Int, t: Set<Int>): MutableSet<Int> {
/**
 * Given a set 's', an integer 'n', and a tuple 't', remove all elements from the set that are present in the tuple.
 * Return the updated set after removing the elements.
 *
 * @param s A set containing elements.
 * @param n An integer representing the length of the tuple.
 * @param t A tuple containing elements.
 * @return Updated set after removing elements present in the tuple.
 *
 * Example:
 * removeElementsFromSet(setOf(1, 2, 3, 4, 5), 3, setOf(4, 5, 6)) -> setOf(1, 2, 3)
 */
fun removeElementsFromSet(s: MutableSet<Int>, n: Int, t: Set<Int>): MutableSet<Int> {

    // Convert the tuple to a set
    val tSet = t.toMutableSet()
    
    // Iterate over the set and remove elements
    for (element in s.toSet()) {
        if (element in tSet) {
            s.remove(element)
        }
    }
    
    return s
}