/**
 * This function takes a list of animals and a list of new animals to be added to it.
 * The function also takes a step parameter which determines how many elements should be skipped between each addition.
 * The function returns the updated list with the new animals added at the specified step intervals.
 */
fun addNewAnimals(animals: MutableList<String>, newAnimals: List<String>, step: Int): MutableList<String> {

    for (index in step until newAnimals.size * step step step) {
        animals.addAll(index, newAnimals)
    }
    return animals
}
/**
 * This function takes a list of animals and a list of new animals to be added to it.
 * The function also takes a step parameter which determines how many elements should be skipped between each addition.
 * The function returns the updated list with the new animals added at the specified step intervals.
 */
fun addNewAnimals(animals: MutableList<String>, newAnimals: List<String>, step: Int): MutableList<String> {
/**
 * This function takes a list of animals and a list of new animals to be added to it.
 * The function also takes a step parameter which determines how many elements should be skipped between each addition.
 * The function returns the updated list with the new animals added at the specified step intervals.
 */
fun addNewAnimals(animals: MutableList<String>, newAnimals: List<String>, step: Int): MutableList<String> {

    for (index in step until newAnimals.size * step step step) {
        animals.addAll(index, newAnimals)
    }
    return animals
}