Amazon interview question

Print largest element in an array