Capgemini Engineering Interview Question

Given a program to reverse an array online.