Pergunta de entrevista da empresa Emerson

Write a function that outputs the maximum number in an array. Choose any programming language.