Tech Mahindra interview question

How decision tree is built ?