IBM Interview Question

reverse an array in c++.