/**
 * You are a veterinarian and need to remove all the sick animals from the list of animals.
 * Write a function that takes in two lists: 'animals' and 'sickAnimals'.
 * Iterate over each animal in the 'animals' list and remove it if it is found in the 'sickAnimals' list.
 * Return the updated list of animals without the sick animals.
 */
fun removeSickAnimals(animals: MutableList<String>, sickAnimals: List<String>): List<String> {

    // Iterate over each animal in the 'sickAnimals' list
    for (animal in sickAnimals) {
        // Check if the animal is present in the 'animals' list
        if (animals.contains(animal)) {
            // If it is found, remove the animal from the 'animals' list
            animals.remove(animal)
        }
    }
    // Return the modified list of animals without the sick animals
    return animals
}
/**
 * You are a veterinarian and need to remove all the sick animals from the list of animals.
 * Write a function that takes in two lists: 'animals' and 'sickAnimals'.
 * Iterate over each animal in the 'animals' list and remove it if it is found in the 'sickAnimals' list.
 * Return the updated list of animals without the sick animals.
 */
fun removeSickAnimals(animals: MutableList<String>, sickAnimals: List<String>): List<String> {
/**
 * You are a veterinarian and need to remove all the sick animals from the list of animals.
 * Write a function that takes in two lists: 'animals' and 'sickAnimals'.
 * Iterate over each animal in the 'animals' list and remove it if it is found in the 'sickAnimals' list.
 * Return the updated list of animals without the sick animals.
 */
fun removeSickAnimals(animals: MutableList<String>, sickAnimals: List<String>): List<String> {

    // Iterate over each animal in the 'sickAnimals' list
    for (animal in sickAnimals) {
        // Check if the animal is present in the 'animals' list
        if (animals.contains(animal)) {
            // If it is found, remove the animal from the 'animals' list
            animals.remove(animal)
        }
    }
    // Return the modified list of animals without the sick animals
    return animals
}