Capgemini Interview Question

They asked me to reverse an Array