title: Print all root to leaf path using recursion
body: <p>I'm trying to print all root to leaf path using recursion, but I'm clueless
  I don't know how to approach it, I'm completely stuck</p>
  <pre><code>&lt;node id=&quot;N1&quot;&gt;
      &lt;node id=&quot;N1&quot;&gt;
          &lt;node id=&quot;N1&quot;&gt;&lt;/node&gt;
          &lt;node id=&quot;N2&quot;&gt;&lt;/node&gt;
          &lt;node id=&quot;N3&quot;&gt;&lt;/node&gt;
      &lt;/node&gt;
  &lt;/node&gt;
  </code></pre>
  <p>desired output :</p>
  <pre><code>N1 N1 N1
  N1 N1 N2
  N1 N1 N3
  </code></pre>