Microsoft interview question

determine if two trees are identical