OptimHire interview question

Explain how decision tree works and math behind it.