Mental Model
Two trees are symmetric if one is a mirror image of the other. We check if the left side of one tree matches the right side of the other and vice versa.
Analogy: Imagine folding a paper with a drawing on one side. If the drawing perfectly matches on the other side when folded, the two sides are symmetric.
Tree1 Tree2
1 1
/ \ / \
2 3 3 2
/ \
4 4
Pointers:
↑ root1 ↑ root2