/**
 * This function adds a new animal to the veterinarian's list with the specified animal type, name, and age.
 *
 * @param vetList The current list of animals at the veterinarian.
 * @param animalType The type of animal to be added.
 * @param name The name of the animal.
 * @param age The age of the animal.
 * @return The updated list of animals at the veterinarian.
 */
fun addNewAnimal(vetList: MutableList<MutableMap<String, Any>>, animalType: String, name: String, age: Int): MutableList<MutableMap<String, Any>> {

    // Creating a new animal map
    val newAnimal = mutableMapOf<String, Any>("type" to animalType, "name" to name, "age" to age)

    // Adding the new animal to the vetList
    vetList.add(newAnimal)

    return vetList
}
/**
 * This function adds a new animal to the veterinarian's list with the specified animal type, name, and age.
 *
 * @param vetList The current list of animals at the veterinarian.
 * @param animalType The type of animal to be added.
 * @param name The name of the animal.
 * @param age The age of the animal.
 * @return The updated list of animals at the veterinarian.
 */
fun addNewAnimal(vetList: MutableList<MutableMap<String, Any>>, animalType: String, name: String, age: Int): MutableList<MutableMap<String, Any>> {
/**
 * This function adds a new animal to the veterinarian's list with the specified animal type, name, and age.
 *
 * @param vetList The current list of animals at the veterinarian.
 * @param animalType The type of animal to be added.
 * @param name The name of the animal.
 * @param age The age of the animal.
 * @return The updated list of animals at the veterinarian.
 */
fun addNewAnimal(vetList: MutableList<MutableMap<String, Any>>, animalType: String, name: String, age: Int): MutableList<MutableMap<String, Any>> {

    // Creating a new animal map
    val newAnimal = mutableMapOf<String, Any>("type" to animalType, "name" to name, "age" to age)

    // Adding the new animal to the vetList
    vetList.add(newAnimal)

    return vetList
}