C3 AI Interview Question

Generate parentheses 1st coding round (leetcode 22)