X Interview Question

Implement decision tree algorithm with python.