Atlassian interview question

Tree, Regular Expression, Shortest path