Anonymous interview question

find max element from an array