Frage im Vorstellungsgespräch bei Cognizant

Write JAVA program to find the maximum element in an array.