Meta interview question

Replicate node tree, complete parenthesis