Atlassian Interview Question

A binary tree traversal problem.