Pregunta de entrevista de FundThrough

How do you find the maximum value in an array?