Cognizant interview question

Algorithm to find out the largest number in an array