Amazon interview question

Binart Search Tree on an array