/**
 * The zoologist has made observations of different species at two different locations.
 * The goal is to find the species that are common in both locations.
 *
 * @param zoologistObservations1 A list containing the observed species at location 1.
 * @param zoologistObservations2 A list containing the observed species at location 2.
 * @return A list containing the species found common in both locations.
 */
fun findCommonSpecies(zoologistObservations1: List<String>, zoologistObservations2: List<String>): List<String> {

    val commonSpecies = mutableListOf<String>()
    for (species1 in zoologistObservations1) {
        if (species1 in zoologistObservations2) {
            commonSpecies.add(species1)
        }
    }
    return commonSpecies
}
/**
 * The zoologist has made observations of different species at two different locations.
 * The goal is to find the species that are common in both locations.
 *
 * @param zoologistObservations1 A list containing the observed species at location 1.
 * @param zoologistObservations2 A list containing the observed species at location 2.
 * @return A list containing the species found common in both locations.
 */
fun findCommonSpecies(zoologistObservations1: List<String>, zoologistObservations2: List<String>): List<String> {
/**
 * The zoologist has made observations of different species at two different locations.
 * The goal is to find the species that are common in both locations.
 *
 * @param zoologistObservations1 A list containing the observed species at location 1.
 * @param zoologistObservations2 A list containing the observed species at location 2.
 * @return A list containing the species found common in both locations.
 */
fun findCommonSpecies(zoologistObservations1: List<String>, zoologistObservations2: List<String>): List<String> {

    val commonSpecies = mutableListOf<String>()
    for (species1 in zoologistObservations1) {
        if (species1 in zoologistObservations2) {
            commonSpecies.add(species1)
        }
    }
    return commonSpecies
}