Emerson interview question

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