Microsoft interview question

Check whether two binary trees are identical or not.