Rename reverse an array using iteratively to reverse an array iteratively