/**
 * This function takes a list of sick animals and a list of new treatments,
 * and modifies the list of animals by appending the new treatments to each animal's treatment history.
 *
 * @param animals A list of sick animals.
 * @param newTreatments A list of new treatments.
 */
fun treatSickAnimals(animals: MutableList<String>, newTreatments: List<String>) {

    for (i in animals.indices) {
        animals[i] += " " + newTreatments[i]
    }
}
/**
 * This function takes a list of sick animals and a list of new treatments,
 * and modifies the list of animals by appending the new treatments to each animal's treatment history.
 *
 * @param animals A list of sick animals.
 * @param newTreatments A list of new treatments.
 */
fun treatSickAnimals(animals: MutableList<String>, newTreatments: List<String>) {
/**
 * This function takes a list of sick animals and a list of new treatments,
 * and modifies the list of animals by appending the new treatments to each animal's treatment history.
 *
 * @param animals A list of sick animals.
 * @param newTreatments A list of new treatments.
 */
fun treatSickAnimals(animals: MutableList<String>, newTreatments: List<String>) {

    for (i in animals.indices) {
        animals[i] += " " + newTreatments[i]
    }
}