Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center).
root = [1,2,2,3,4,4,3]trueroot = [1,2,2,null,3,null,3]falseisMirror(root.left, root.right)true; one null → falseL.val == R.val — mismatch → falseisMirror(L.left, R.right) AND isMirror(L.right, R.left)A tree is symmetric when its left and right subtrees are mirrors of each other. Two subtrees mirror each other when their roots have equal values AND the left child of L mirrors the right child of R (and vice versa). The recursion cross-checks these mirror positions at every depth simultaneously. Both null means the branch is balanced; one null is an asymmetry; differing values short-circuit immediately, pruning all unnecessary deeper checks.