Bloomberg interview question

Determine if two BSTs are equal.