Balanced Bracket Sequence

Company: IBM_28thjuly_2

Difficulty: medium