/**
 * Given a list of organisms and an area, return the species that are present in the area.
 *
 * @param organisms A list of species present in a certain location.
 * @param area The name of the area.
 * @return A list of species present in the given area.
 */
fun findSpeciesInArea(organisms: List<String>, area: String): List<String> {

    val speciesInArea = mutableListOf<String>()

    // Check each organism in the list
    for (organism in organisms) {
        if (organism in area) {
            speciesInArea.add(organism)
        }
    }

    return speciesInArea
}
/**
 * Given a list of organisms and an area, return the species that are present in the area.
 *
 * @param organisms A list of species present in a certain location.
 * @param area The name of the area.
 * @return A list of species present in the given area.
 */
fun findSpeciesInArea(organisms: List<String>, area: String): List<String> {
/**
 * Given a list of organisms and an area, return the species that are present in the area.
 *
 * @param organisms A list of species present in a certain location.
 * @param area The name of the area.
 * @return A list of species present in the given area.
 */
fun findSpeciesInArea(organisms: List<String>, area: String): List<String> {

    val speciesInArea = mutableListOf<String>()

    // Check each organism in the list
    for (organism in organisms) {
        if (organism in area) {
            speciesInArea.add(organism)
        }
    }

    return speciesInArea
}