Balanced Parentheses in Lexicographic Order — Coding Problem — CareerVerse