Bloomberg interview question

Check if a string of brackets is balanced:

Interview Answer

Anonymous

22 Jul 2020

Solved with stack and map of different brackets time: n space: n