Amazon interview question

Code Binary Search Tree in Java Anagrams