/**
 * Given a list of animals and their corresponding patient numbers, find the animals with patient numbers that are divisible by 3.
 *
 * @param veterinarian The name of the veterinarian.
 * @param patients A list of animals along with their patient numbers.
 * @return A list containing only the animals whose patient numbers are divisible by 3.
 */
fun findAnimals(veterinarian: String, patients: List<Pair<String, Int>>): List<String> {

    val animalsDivisibleBy3 = mutableListOf<String>()

    for ((animal, patientNumber) in patients) {
        if (patientNumber % 3 == 0) {
            animalsDivisibleBy3.add(animal)
        }
    }

    return animalsDivisibleBy3
}
/**
 * Given a list of animals and their corresponding patient numbers, find the animals with patient numbers that are divisible by 3.
 *
 * @param veterinarian The name of the veterinarian.
 * @param patients A list of animals along with their patient numbers.
 * @return A list containing only the animals whose patient numbers are divisible by 3.
 */
fun findAnimals(veterinarian: String, patients: List<Pair<String, Int>>): List<String> {
/**
 * Given a list of animals and their corresponding patient numbers, find the animals with patient numbers that are divisible by 3.
 *
 * @param veterinarian The name of the veterinarian.
 * @param patients A list of animals along with their patient numbers.
 * @return A list containing only the animals whose patient numbers are divisible by 3.
 */
fun findAnimals(veterinarian: String, patients: List<Pair<String, Int>>): List<String> {

    val animalsDivisibleBy3 = mutableListOf<String>()

    for ((animal, patientNumber) in patients) {
        if (patientNumber % 3 == 0) {
            animalsDivisibleBy3.add(animal)
        }
    }

    return animalsDivisibleBy3
}