Amazon interview question

Are two trees the same?