/**
 * The function takes a dictionary of zoo animals as input and modifies the value of each animal to include a list of their species.
 *
 * @param zooAnimals A dictionary containing names of animals as keys and their corresponding species as values. The species are initially empty.
 * @return The dictionary of zoo animals with modified values, where each animal's species is included in a list.
 */
fun modifyAnimalSpecies(zooAnimals: MutableMap<String, List<String>>): MutableMap<String, List<String>> {

    // Iterate over the items of the dictionary
    for ((animal, species) in zooAnimals) {
        // Use map function to update the species of each animal
        zooAnimals[animal] = species.map { it }
    }
    return zooAnimals
}
/**
 * The function takes a dictionary of zoo animals as input and modifies the value of each animal to include a list of their species.
 *
 * @param zooAnimals A dictionary containing names of animals as keys and their corresponding species as values. The species are initially empty.
 * @return The dictionary of zoo animals with modified values, where each animal's species is included in a list.
 */
fun modifyAnimalSpecies(zooAnimals: MutableMap<String, List<String>>): MutableMap<String, List<String>> {
/**
 * The function takes a dictionary of zoo animals as input and modifies the value of each animal to include a list of their species.
 *
 * @param zooAnimals A dictionary containing names of animals as keys and their corresponding species as values. The species are initially empty.
 * @return The dictionary of zoo animals with modified values, where each animal's species is included in a list.
 */
fun modifyAnimalSpecies(zooAnimals: MutableMap<String, List<String>>): MutableMap<String, List<String>> {

    // Iterate over the items of the dictionary
    for ((animal, species) in zooAnimals) {
        // Use map function to update the species of each animal
        zooAnimals[animal] = species.map { it }
    }
    return zooAnimals
}