Domanda di colloquio di Meta

Convert a string consisting of numbers and parentheses into a binary tree.