/**
 * This function takes in two lists representing animals in two different zoos.
 * It returns a list of common animals present in both zoos using list comprehension and the in operator.
 */
fun findCommonAnimals(zoo1: List<String>, zoo2: List<String>): List<String> {

    // Use list comprehension and the in operator to find the common animals in both zoos
    val commonAnimals = zoo1.filter { it in zoo2 }
    
    return commonAnimals
}
/**
 * This function takes in two lists representing animals in two different zoos.
 * It returns a list of common animals present in both zoos using list comprehension and the in operator.
 */
fun findCommonAnimals(zoo1: List<String>, zoo2: List<String>): List<String> {
/**
 * This function takes in two lists representing animals in two different zoos.
 * It returns a list of common animals present in both zoos using list comprehension and the in operator.
 */
fun findCommonAnimals(zoo1: List<String>, zoo2: List<String>): List<String> {

    // Use list comprehension and the in operator to find the common animals in both zoos
    val commonAnimals = zoo1.filter { it in zoo2 }
    
    return commonAnimals
}