Pregunta de entrevista de RapiPay Fintech

how would you find the maximum element in an array