Question d’entretien chez Emerson

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