Loading problem…
Given the root of a binary tree, invert the tree, and return its root.
Inverting a binary tree means swapping every left child with its corresponding right child, at every level of the tree.
This is the famous "Homebrew" problem — the one that inspired the tweet "Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so f*** off."