Infosys interview question

Find largest element in an array.