Pregunta de entrevista de TuSimple

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