Pergunta de entrevista da empresa Infosys

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