Pergunta de entrevista da empresa American Express

How to find the highest value in an array?