Globality interview question

A three children tree traversal with self defined node.