/**
 * This function takes a list of pet names and prints the names of the pets that have been vaccinated by the veterinarian.
 *
 * @param veterinarian The veterinarian's name.
 * @param pets A list of pet names.
 */
fun printVaccinatedPets(veterinarian: String, pets: List<String>) {

    val vaccinatedPets = mutableListOf<String>() // Empty list to store vaccinated pet names

    for (pet in pets) {
        if ("${veterinarian}_vac" in pet) {
            vaccinatedPets.add(pet)
        }
    }

    for (pet in vaccinatedPets) {
        println(pet)
    }
}
/**
 * This function takes a list of pet names and prints the names of the pets that have been vaccinated by the veterinarian.
 *
 * @param veterinarian The veterinarian's name.
 * @param pets A list of pet names.
 */
fun printVaccinatedPets(veterinarian: String, pets: List<String>) {
/**
 * This function takes a list of pet names and prints the names of the pets that have been vaccinated by the veterinarian.
 *
 * @param veterinarian The veterinarian's name.
 * @param pets A list of pet names.
 */
fun printVaccinatedPets(veterinarian: String, pets: List<String>) {

    val vaccinatedPets = mutableListOf<String>() // Empty list to store vaccinated pet names

    for (pet in pets) {
        if ("${veterinarian}_vac" in pet) {
            vaccinatedPets.add(pet)
        }
    }

    for (pet in vaccinatedPets) {
        println(pet)
    }
}