/**
 * This exercise focuses on adding elements to a set and checking for equality.
 * The function takes in a set 'zooSet' and a list 'newElements'.
 * Add all the elements from 'newElements' to 'zooSet'.
 * Finally, check if 'zooSet' is equal to the set containing all the unique elements in 'newElements'.
 *
 * @return Pair containing the updated 'zooSet' after adding the new elements and a Boolean indicating if 'zooSet' is equal to the set of all unique elements in 'newElements'.
 */
fun addElementsToSet(zooSet: MutableSet<String>, newElements: List<String>): Pair<Set<String>, Boolean> {

    // Add all elements from 'newElements' to 'zooSet'
    val zoologistSet = zooSet.toMutableSet()
    zoologistSet.addAll(newElements)
    
    // Check for equality
    val isEqual = zoologistSet == newElements.toSet()
    
    return Pair(zoologistSet, isEqual)
}
/**
 * This exercise focuses on adding elements to a set and checking for equality.
 * The function takes in a set 'zooSet' and a list 'newElements'.
 * Add all the elements from 'newElements' to 'zooSet'.
 * Finally, check if 'zooSet' is equal to the set containing all the unique elements in 'newElements'.
 *
 * @return Pair containing the updated 'zooSet' after adding the new elements and a Boolean indicating if 'zooSet' is equal to the set of all unique elements in 'newElements'.
 */
fun addElementsToSet(zooSet: MutableSet<String>, newElements: List<String>): Pair<Set<String>, Boolean> {
/**
 * This exercise focuses on adding elements to a set and checking for equality.
 * The function takes in a set 'zooSet' and a list 'newElements'.
 * Add all the elements from 'newElements' to 'zooSet'.
 * Finally, check if 'zooSet' is equal to the set containing all the unique elements in 'newElements'.
 *
 * @return Pair containing the updated 'zooSet' after adding the new elements and a Boolean indicating if 'zooSet' is equal to the set of all unique elements in 'newElements'.
 */
fun addElementsToSet(zooSet: MutableSet<String>, newElements: List<String>): Pair<Set<String>, Boolean> {

    // Add all elements from 'newElements' to 'zooSet'
    val zoologistSet = zooSet.toMutableSet()
    zoologistSet.addAll(newElements)
    
    // Check for equality
    val isEqual = zoologistSet == newElements.toSet()
    
    return Pair(zoologistSet, isEqual)
}