/**
 * The veterinarian needs a function that removes sick animals from the list of available species.
 * Using the NOT operator and copying lists, complete the function to meet the given requirements.
 *
 * @param availableSpecies A list of available animal species.
 * @param sickAnimals A list of sick animals.
 * @return The updated list of available species after removing sick animals.
 */
fun removeSickAnimals(availableSpecies: List<String>, sickAnimals: List<String>): List<String> {

    // Create a deep copy of availableSpecies
    val updatedList = availableSpecies.toMutableList()

    // Use the NOT operator to identify healthy animals
    val healthyAnimals = updatedList.filter { animal -> animal !in sickAnimals }

    // Update the list of available species with healthy animals
    updatedList.clear()
    updatedList.addAll(healthyAnimals)

    return updatedList
}
/**
 * The veterinarian needs a function that removes sick animals from the list of available species.
 * Using the NOT operator and copying lists, complete the function to meet the given requirements.
 *
 * @param availableSpecies A list of available animal species.
 * @param sickAnimals A list of sick animals.
 * @return The updated list of available species after removing sick animals.
 */
fun removeSickAnimals(availableSpecies: List<String>, sickAnimals: List<String>): List<String> {
/**
 * The veterinarian needs a function that removes sick animals from the list of available species.
 * Using the NOT operator and copying lists, complete the function to meet the given requirements.
 *
 * @param availableSpecies A list of available animal species.
 * @param sickAnimals A list of sick animals.
 * @return The updated list of available species after removing sick animals.
 */
fun removeSickAnimals(availableSpecies: List<String>, sickAnimals: List<String>): List<String> {

    // Create a deep copy of availableSpecies
    val updatedList = availableSpecies.toMutableList()

    // Use the NOT operator to identify healthy animals
    val healthyAnimals = updatedList.filter { animal -> animal !in sickAnimals }

    // Update the list of available species with healthy animals
    updatedList.clear()
    updatedList.addAll(healthyAnimals)

    return updatedList
}