/**
 * This function adds a new animal to the existing list of animals.
 *
 * @param animalsList A list containing the names of existing animals.
 * @param animal The name of the new animal to be added.
 * @return The updated list with the new animal added.
 */
fun addAnimal(animalsList: MutableList<String>, animal: String): MutableList<String> {

    animalsList.add(animal)
    return animalsList
}
/**
 * This function adds a new animal to the existing list of animals.
 *
 * @param animalsList A list containing the names of existing animals.
 * @param animal The name of the new animal to be added.
 * @return The updated list with the new animal added.
 */
fun addAnimal(animalsList: MutableList<String>, animal: String): MutableList<String> {
/**
 * This function adds a new animal to the existing list of animals.
 *
 * @param animalsList A list containing the names of existing animals.
 * @param animal The name of the new animal to be added.
 * @return The updated list with the new animal added.
 */
fun addAnimal(animalsList: MutableList<String>, animal: String): MutableList<String> {

    animalsList.add(animal)
    return animalsList
}