Tripadvisor interview question

Write a function to see if two binary trees are equal.