Amazon interview question

implement Balanced Binary Tree using java