Capgemini interview question

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