<p>We run a preorder depth-first search (DFS) on the <code>root</code> of a binary tree.</p>
<p>At each node in this traversal, we output <code>D</code> dashes (where <code>D</code> is the depth of this node), then we output the value of this node. If the depth of a node is <code>D</code>, the depth of its immediate child is <code>D + 1</code>. The depth of the <code>root</code> node is <code>0</code>.</p>
<p>If a node has only one child, that child is guaranteed to be <strong>the left child</strong>.</p>
<p>Given the output <code>traversal</code> of this traversal, recover the tree and return <em>its</em><code>root</code>.</p>