/**
 * Given a list of animal names, print the names of animals at even positions
 * starting from the second element using the step parameter.
 *
 * @param nameList A list of animal names.
 * @param step The step parameter to specify the increment between elements.
 */
fun printAnimals(nameList: List<String>, step: Int) {

    for (i in step until nameList.size step step) {
        println(nameList[i])
    }
}
/**
 * Given a list of animal names, print the names of animals at even positions
 * starting from the second element using the step parameter.
 *
 * @param nameList A list of animal names.
 * @param step The step parameter to specify the increment between elements.
 */
fun printAnimals(nameList: List<String>, step: Int) {
/**
 * Given a list of animal names, print the names of animals at even positions
 * starting from the second element using the step parameter.
 *
 * @param nameList A list of animal names.
 * @param step The step parameter to specify the increment between elements.
 */
fun printAnimals(nameList: List<String>, step: Int) {

    for (i in step until nameList.size step step) {
        println(nameList[i])
    }
}