Balanced brackets
Expert๐ท๏ธ Data structures๐ Data Structures
๐งฉ The problem
TAKE a TEXT made of ( and ) characters. DISPLAY “Balanced” if every ( has a matching ) in the right order, otherwise “Not balanced”.
Examples
Input: "(())" โ BalancedInput: "())(" โ Not balanced
โ๏ธ Write your pseudocode
Press Run to watch it step by step, and Run tests to check it against every test case.