IBM interview question

Generate Parentheses medium 3sum medium