/**
 * A Farmer wants to find the cows that are both healthy and vaccinated.
 * Given two maps, cows and vaccinatedCows, the function should
 * return a list of the cow names that satisfy both conditions.
 *
 * @param cows A map containing cow names as keys and their health status as values.
 * @param vaccinatedCows A map containing cow names as keys and their vaccination status as values.
 * @return A list of cow names that are both healthy and vaccinated.
 */
fun getHealthyCows(cows: Map<String, String>, vaccinatedCows: Map<String, String>): List<String> {

    // Initialize an empty list to store the names of healthy and vaccinated cows
    val healthyVaccinatedCows = mutableListOf<String>()

    // Iterate over the keys in the cows map
    for ((cow, healthStatus) in cows) {
        // Check if the cow is both healthy and vaccinated
        if (healthStatus == "healthy" && vaccinatedCows[cow] == "vaccinated") {
            // Append the cow name to the list
            healthyVaccinatedCows.add(cow)
        }
    }

    return healthyVaccinatedCows
}
/**
 * A Farmer wants to find the cows that are both healthy and vaccinated.
 * Given two maps, cows and vaccinatedCows, the function should
 * return a list of the cow names that satisfy both conditions.
 *
 * @param cows A map containing cow names as keys and their health status as values.
 * @param vaccinatedCows A map containing cow names as keys and their vaccination status as values.
 * @return A list of cow names that are both healthy and vaccinated.
 */
fun getHealthyCows(cows: Map<String, String>, vaccinatedCows: Map<String, String>): List<String> {
/**
 * A Farmer wants to find the cows that are both healthy and vaccinated.
 * Given two maps, cows and vaccinatedCows, the function should
 * return a list of the cow names that satisfy both conditions.
 *
 * @param cows A map containing cow names as keys and their health status as values.
 * @param vaccinatedCows A map containing cow names as keys and their vaccination status as values.
 * @return A list of cow names that are both healthy and vaccinated.
 */
fun getHealthyCows(cows: Map<String, String>, vaccinatedCows: Map<String, String>): List<String> {

    // Initialize an empty list to store the names of healthy and vaccinated cows
    val healthyVaccinatedCows = mutableListOf<String>()

    // Iterate over the keys in the cows map
    for ((cow, healthStatus) in cows) {
        // Check if the cow is both healthy and vaccinated
        if (healthStatus == "healthy" && vaccinatedCows[cow] == "vaccinated") {
            // Append the cow name to the list
            healthyVaccinatedCows.add(cow)
        }
    }

    return healthyVaccinatedCows
}