Cyntexa interview question

Leetcode 1087 (Brace expension question)