Sponsored
Use these hints if you're stuck. Try solving on your own first.
If you traverse the tree from right to left, the invalid node will point to a node that has already been visited.
Solve with full IDE support and test cases