B2C2 interview question

Describe how a decision tree works