TuSimple Interview Question

Transfer a general tree to a binary tree by certain rules.