Microsoft interview question

Write a method that compares two binary trees.