Atlassian interview question

How does a decision tree work?