To display the maximum element of the array