Amazon Interview Question

Write equals for binary trees.