/**
 * This function removes animals from a set, given a list of animals to remove.
 *
 * @param animalSet A set containing the animals
 * @param animalsToRemove A list of animals to remove from the set
 * @return The modified set after removing the specified animals
 */
fun removeAnimals(animalSet: MutableSet<String>, animalsToRemove: List<String>): MutableSet<String> {

    for (animal in animalsToRemove) {
        if (animal in animalSet) {
            animalSet.remove(animal)
        }
    }
    
    return animalSet
}
/**
 * This function removes animals from a set, given a list of animals to remove.
 *
 * @param animalSet A set containing the animals
 * @param animalsToRemove A list of animals to remove from the set
 * @return The modified set after removing the specified animals
 */
fun removeAnimals(animalSet: MutableSet<String>, animalsToRemove: List<String>): MutableSet<String> {
/**
 * This function removes animals from a set, given a list of animals to remove.
 *
 * @param animalSet A set containing the animals
 * @param animalsToRemove A list of animals to remove from the set
 * @return The modified set after removing the specified animals
 */
fun removeAnimals(animalSet: MutableSet<String>, animalsToRemove: List<String>): MutableSet<String> {

    for (animal in animalsToRemove) {
        if (animal in animalSet) {
            animalSet.remove(animal)
        }
    }
    
    return animalSet
}