Autodesk Interview Question

DSA tree traversal style quesiton