/**
 * This function takes a list of animals, a list of medical records for each animal, and the veterinarian's name as inputs.
 * It returns a list of animals that are sick according to their medical records.
 *
 * @param animals A list of animals' names.
 * @param medicalRecords A list of medical records for each animal. Each record contains a description of the animal's health.
 * @param vetName The veterinarian's name.
 * @return A list of animals that are sick according to their medical records.
 */
fun findSickAnimals(animals: List<String>, medicalRecords: List<String>, vetName: String): List<String> {

    val sickAnimals = mutableListOf<String>()

    for (i in animals.indices) {
        val animal = animals[i]
        val record = medicalRecords[i]

        // Check if the record indicates that the animal is sick
        if ("sick" in record.toLowerCase()) {
            sickAnimals.add(animal)
        }
    }

    return sickAnimals
}
/**
 * This function takes a list of animals, a list of medical records for each animal, and the veterinarian's name as inputs.
 * It returns a list of animals that are sick according to their medical records.
 *
 * @param animals A list of animals' names.
 * @param medicalRecords A list of medical records for each animal. Each record contains a description of the animal's health.
 * @param vetName The veterinarian's name.
 * @return A list of animals that are sick according to their medical records.
 */
fun findSickAnimals(animals: List<String>, medicalRecords: List<String>, vetName: String): List<String> {
/**
 * This function takes a list of animals, a list of medical records for each animal, and the veterinarian's name as inputs.
 * It returns a list of animals that are sick according to their medical records.
 *
 * @param animals A list of animals' names.
 * @param medicalRecords A list of medical records for each animal. Each record contains a description of the animal's health.
 * @param vetName The veterinarian's name.
 * @return A list of animals that are sick according to their medical records.
 */
fun findSickAnimals(animals: List<String>, medicalRecords: List<String>, vetName: String): List<String> {

    val sickAnimals = mutableListOf<String>()

    for (i in animals.indices) {
        val animal = animals[i]
        val record = medicalRecords[i]

        // Check if the record indicates that the animal is sick
        if ("sick" in record.toLowerCase()) {
            sickAnimals.add(animal)
        }
    }

    return sickAnimals
}