Amazon interview question

Write equals for binary trees.