Amazon interview question

Code question: how to compare two BST