/**
 * This function takes a list of organisms and a string representing a species.
 * It returns a new list containing only the organisms that belong to the given species.
 */
fun findCommonSpecies(organisms: List<Map<String, String>>, species: String): List<Map<String, String>> {

    val commonSpecies = mutableListOf<Map<String, String>>()

    // Loop through each organism
    for (organism in organisms) {
        // Check if the organism has the specified species
        if (organism["species"] == species) {
            // Append the organism to the commonSpecies list
            commonSpecies.add(organism)
        }
    }

    return commonSpecies
}
/**
 * This function takes a list of organisms and a string representing a species.
 * It returns a new list containing only the organisms that belong to the given species.
 */
fun findCommonSpecies(organisms: List<Map<String, String>>, species: String): List<Map<String, String>> {
/**
 * This function takes a list of organisms and a string representing a species.
 * It returns a new list containing only the organisms that belong to the given species.
 */
fun findCommonSpecies(organisms: List<Map<String, String>>, species: String): List<Map<String, String>> {

    val commonSpecies = mutableListOf<Map<String, String>>()

    // Loop through each organism
    for (organism in organisms) {
        // Check if the organism has the specified species
        if (organism["species"] == species) {
            // Append the organism to the commonSpecies list
            commonSpecies.add(organism)
        }
    }

    return commonSpecies
}