/**
 * You are a zoologist who has two zoos. Each zoo has a set of animals stored in them.
 * Your task is to write a function that will find the common animals between the two zoos.
 *
 * @param zoo1 Set containing animals in the first zoo.
 * @param zoo2 Set containing animals in the second zoo.
 * @return A set containing the common animals between the two zoos.
 */
fun findCommonAnimals(zoo1: Set<String>, zoo2: Set<String>): Set<String> {

    val commonAnimals = mutableSetOf<String>() // Create an empty set to store common animals

    // Iterate through each animal in zoo1
    for (animal1 in zoo1) {
        // Check if the animal is present in zoo2
        if (animal1 in zoo2) {
            commonAnimals.add(animal1) // Add the animal to the common animals set
        }
    }

    return commonAnimals
}
/**
 * You are a zoologist who has two zoos. Each zoo has a set of animals stored in them.
 * Your task is to write a function that will find the common animals between the two zoos.
 *
 * @param zoo1 Set containing animals in the first zoo.
 * @param zoo2 Set containing animals in the second zoo.
 * @return A set containing the common animals between the two zoos.
 */
fun findCommonAnimals(zoo1: Set<String>, zoo2: Set<String>): Set<String> {
/**
 * You are a zoologist who has two zoos. Each zoo has a set of animals stored in them.
 * Your task is to write a function that will find the common animals between the two zoos.
 *
 * @param zoo1 Set containing animals in the first zoo.
 * @param zoo2 Set containing animals in the second zoo.
 * @return A set containing the common animals between the two zoos.
 */
fun findCommonAnimals(zoo1: Set<String>, zoo2: Set<String>): Set<String> {

    val commonAnimals = mutableSetOf<String>() // Create an empty set to store common animals

    // Iterate through each animal in zoo1
    for (animal1 in zoo1) {
        // Check if the animal is present in zoo2
        if (animal1 in zoo2) {
            commonAnimals.add(animal1) // Add the animal to the common animals set
        }
    }

    return commonAnimals
}