Rialtic interview question

Coding exam that involves creating a decision tree.