Rosetta Problems

Shortest Regular Bracket

https://oj.vnoi.info/problem/mbracket