NTT DATA Interview Question

WAP to find the maximum element in the array