Pergunta de entrevista da empresa RapiPay Fintech

how would you find the maximum element in an array