Infosys interview question

How to find out the largest value in an array