Cura Tech Interview Question

reverse an array without using local variable