Google interview question

Implementing Tree class and testing two given trees for equality.