Approach hintTry it first, then revealHide
Write a helper that checks whether two subtrees are mirrors: their roots must match, the left child of one must mirror the right child of the other, and vice versa. Call it on the root's two children.
Write a helper that checks whether two subtrees are mirrors: their roots must match, the left child of one must mirror the right child of the other, and vice versa. Call it on the root's two children.