RapiPay Fintech interview question

how would you find the maximum element in an array