NTT DATA interview question

WAP to find the maximum element in the array