Pregunta de entrevista de Infosys

find the largest number in an array without using sort function?