/**
 * Given a list of veterinary records and a list of animals to remove, remove the animals from the veterinary records.
 *
 * @param vetRecords List of veterinary records.
 * @param animalsToRemove List of animals to remove from the vetRecords.
 * @return Updated list of veterinary records with animals removed.
 *
 * Example:
 * vetRecords = listOf("Dog", "Cat", "Rabbit", "Dog", "Hamster", "Snake", "Cat")
 * animalsToRemove = listOf("Dog", "Snake")
 * removeShortCircuitingVeterinarian(vetRecords, animalsToRemove) // Output: ["Cat", "Rabbit", "Hamster", "Cat"]
 */
fun removeShortCircuitingVeterinarian(vetRecords: List<String>, animalsToRemove: List<String>): List<String> {

    return vetRecords.filter { animal -> animal !in animalsToRemove.toSet() }
}
/**
 * Given a list of veterinary records and a list of animals to remove, remove the animals from the veterinary records.
 *
 * @param vetRecords List of veterinary records.
 * @param animalsToRemove List of animals to remove from the vetRecords.
 * @return Updated list of veterinary records with animals removed.
 *
 * Example:
 * vetRecords = listOf("Dog", "Cat", "Rabbit", "Dog", "Hamster", "Snake", "Cat")
 * animalsToRemove = listOf("Dog", "Snake")
 * removeShortCircuitingVeterinarian(vetRecords, animalsToRemove) // Output: ["Cat", "Rabbit", "Hamster", "Cat"]
 */
fun removeShortCircuitingVeterinarian(vetRecords: List<String>, animalsToRemove: List<String>): List<String> {
/**
 * Given a list of veterinary records and a list of animals to remove, remove the animals from the veterinary records.
 *
 * @param vetRecords List of veterinary records.
 * @param animalsToRemove List of animals to remove from the vetRecords.
 * @return Updated list of veterinary records with animals removed.
 *
 * Example:
 * vetRecords = listOf("Dog", "Cat", "Rabbit", "Dog", "Hamster", "Snake", "Cat")
 * animalsToRemove = listOf("Dog", "Snake")
 * removeShortCircuitingVeterinarian(vetRecords, animalsToRemove) // Output: ["Cat", "Rabbit", "Hamster", "Cat"]
 */
fun removeShortCircuitingVeterinarian(vetRecords: List<String>, animalsToRemove: List<String>): List<String> {

    return vetRecords.filter { animal -> animal !in animalsToRemove.toSet() }
}