Amazon interview question

Check whether two BSTs contain same Node value