Deviopath › Swift
Medium · Strings
(), [], {} must nest correctly. Write balanced(_:).
()
[]
{}
balanced(_:)
Next: Remove Consecutive Duplicates