/**
 * This function checks if an animal's symptoms match a specific condition.
 *
 * @param animalType The type of animal.
 * @param symptoms A list of symptoms.
 * @return True if the symptoms match the condition, False otherwise.
 */
fun checkAnimalSymptoms(animalType: String, symptoms: List<String>): Boolean {

    return when (animalType) {
        "cat" -> "vomiting" in symptoms || "loss of appetite" in symptoms
        "dog" -> "coughing" in symptoms || "lethargy" in symptoms
        "bird" -> "runny nose" in symptoms || "sneezing" in symptoms
        else -> false
    }
}
/**
 * This function checks if an animal's symptoms match a specific condition.
 *
 * @param animalType The type of animal.
 * @param symptoms A list of symptoms.
 * @return True if the symptoms match the condition, False otherwise.
 */
fun checkAnimalSymptoms(animalType: String, symptoms: List<String>): Boolean {
/**
 * This function checks if an animal's symptoms match a specific condition.
 *
 * @param animalType The type of animal.
 * @param symptoms A list of symptoms.
 * @return True if the symptoms match the condition, False otherwise.
 */
fun checkAnimalSymptoms(animalType: String, symptoms: List<String>): Boolean {

    return when (animalType) {
        "cat" -> "vomiting" in symptoms || "loss of appetite" in symptoms
        "dog" -> "coughing" in symptoms || "lethargy" in symptoms
        "bird" -> "runny nose" in symptoms || "sneezing" in symptoms
        else -> false
    }
}