Aman Interview Question

how does decision trees work?