Amazon interview question

Tallest peak problem in an array