You are given the root of a binary tree.
root
Your task is to invert the binary tree.
Note that:
Do not return anything, instead modify the input tree.
None
An empty tree remains empty after inversion.
Hello! I am your ✨ AI assistant. I can provide you hints, explanations, give feedback on your code, and more. Just ask me anything related to the problem you're working on!