Atlassian Interview Question

Balanced braces - LC. 20