Innermost Brackets — Find the strings in the innermost level | {Coding Question}
Given a string containing nested brackets, print all the “strings” in the highest/innermost bracket level. You can assume that brackets are all valid and ignore any whitespaces.
Oct 18, 2022
input = ( p((qsdgfsgsgd(dfggfg))) ((s(ssdgssgf))t) )”
output = [[‘dfggfg’], [‘ssdgssgf’]] (as both are at maximum 4th nested level)