Symmetric Binary Tree
A binary tree is symmetric if its left and right subtrees are mirror images. For two corresponding nodes, their values must be equal, the left child of one must mirror the right child of the other, and the right child must mirror the left child. This can be implemented recursively or iteratively using a queue.
Compare the left subtree with the mirror of the right subtree.
Corresponding values must match.
a.left must mirror b.right.
a.right must mirror b.left.
Time complexity: O(n).
Recursive auxiliary space: O(h).