Create reverse an array using iteratively