To print maximum element of the array