/**
 * This function takes in a dictionary of animals, where the keys are the names of the animals and the values are
 * their respective sounds. It modifies the sound value of the animal with the given name and returns the modified
 * dictionary.
 *
 * @param animals A dictionary containing the animal names and their corresponding sounds.
 * @param name The name of the animal whose sound needs to be modified.
 * @param sound The new sound value to assign to the specified animal.
 * @return The modified dictionary with the updated sound value for the specified animal.
 */
fun modifyAnimalInfo(animals: MutableMap<String, String>, name: String, sound: String): MutableMap<String, String> {

    for ((animal, animalSound) in animals) {
        if (animal == name) {
            animals[animal] = sound
        }
    }
    return animals
}
/**
 * This function takes in a dictionary of animals, where the keys are the names of the animals and the values are
 * their respective sounds. It modifies the sound value of the animal with the given name and returns the modified
 * dictionary.
 *
 * @param animals A dictionary containing the animal names and their corresponding sounds.
 * @param name The name of the animal whose sound needs to be modified.
 * @param sound The new sound value to assign to the specified animal.
 * @return The modified dictionary with the updated sound value for the specified animal.
 */
fun modifyAnimalInfo(animals: MutableMap<String, String>, name: String, sound: String): MutableMap<String, String> {
/**
 * This function takes in a dictionary of animals, where the keys are the names of the animals and the values are
 * their respective sounds. It modifies the sound value of the animal with the given name and returns the modified
 * dictionary.
 *
 * @param animals A dictionary containing the animal names and their corresponding sounds.
 * @param name The name of the animal whose sound needs to be modified.
 * @param sound The new sound value to assign to the specified animal.
 * @return The modified dictionary with the updated sound value for the specified animal.
 */
fun modifyAnimalInfo(animals: MutableMap<String, String>, name: String, sound: String): MutableMap<String, String> {

    for ((animal, animalSound) in animals) {
        if (animal == name) {
            animals[animal] = sound
        }
    }
    return animals
}