Arcesium interview question

Print all balanced parenthesis SQL Queries OOP concepts