Capgemini Interview Question

Next question also a code about find the largest element in the array?