Infosys interview question

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