Was expecting a question from bloomberg tagged but instead got an easy-medium question that went like this:
Given a string with nested brackets e.g. "ab(cd[]m){(ef)g}", return all of its most deeply nested substrings
In the case of the example it would be ["", "ef"]