Sponsored
Use these hints if you're stuck. Try solving on your own first.
Based on the label of the current node, find what the label must be for the parent of that node.
Solve with full IDE support and test cases