Atlassian Interview Question

Tree, Regular Expression, Shortest path