Atlassian interview question

Binary Search Tree and Graph Theory