/**
 * This function takes in two lists representing two different zoos.
 * It returns a list containing the animals that are common in both zoos.
 *
 * @param zoo1 The list representing the first zoo.
 * @param zoo2 The list representing the second zoo.
 * @return The list containing the animals common in both zoos.
 */
fun findCommonAnimals(zoo1: List<String>, zoo2: List<String>): List<String> {

    val commonAnimals = mutableListOf<String>()

    for (animal1 in zoo1) {
        for (animal2 in zoo2) {
            if (animal1 == animal2) {
                commonAnimals.add(animal1)
                break
            }
        }
    }

    return commonAnimals
}
/**
 * This function takes in two lists representing two different zoos.
 * It returns a list containing the animals that are common in both zoos.
 *
 * @param zoo1 The list representing the first zoo.
 * @param zoo2 The list representing the second zoo.
 * @return The list containing the animals common in both zoos.
 */
fun findCommonAnimals(zoo1: List<String>, zoo2: List<String>): List<String> {
/**
 * This function takes in two lists representing two different zoos.
 * It returns a list containing the animals that are common in both zoos.
 *
 * @param zoo1 The list representing the first zoo.
 * @param zoo2 The list representing the second zoo.
 * @return The list containing the animals common in both zoos.
 */
fun findCommonAnimals(zoo1: List<String>, zoo2: List<String>): List<String> {

    val commonAnimals = mutableListOf<String>()

    for (animal1 in zoo1) {
        for (animal2 in zoo2) {
            if (animal1 == animal2) {
                commonAnimals.add(animal1)
                break
            }
        }
    }

    return commonAnimals
}