Find peak element in an unordered array.