Chewy interview question

One question on decision tree