<p>Given the <code>root</code> of a binary tree, flatten the tree into a "linked list":</p>
<ul>
<li>The "linked list" should use the same <code>TreeNode</code> class where the <code>right</code> child pointer points to the next node in the list and the <code>left</code> child pointer is always <code>null</code>.</li>
<li>The "linked list" should be in the same order as a <ahref="https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR"target="_blank"><strong>pre-order</strong><strong> traversal</strong></a> of the binary tree.</li>