Apisero interview question

how do you find the maximum element in array?