Pergunta de entrevista da empresa Microchip Technology

Write a function to find the max value in an array.