Pergunta de entrevista da empresa Cognizant

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