Pergunta de entrevista da empresa Microsoft

Given a binary tree of nodes, design naming conventions for each node so if a message comes to the root node, it will get routed to the desired node. Implement routing logic for each node.