Return true if every bracket in s is closed by the same type of bracket, in the correct order.
Patterns: stack. Difficulty: easy.
Open in Dryrun