Whatfix interview question

Write and trace a program to compare two tree data structures?