Pregunta de entrevista de Microchip Technology

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