Aman interview question

how does decision trees work?