Microsoft Interview Question

Generate Parentheses on leet code