Pregunta de entrevista de Emerson

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