MAQ Software interview question

Finding a peak element in an array,