Write a function to traverse a tree structure representing an organizational hierarchy at Baker Hughes.