Given a string s made up exclusively of these bracket characters: '(', ')', '{', '}', '[', and ']'.
A string s counts as valid exactly when all of the following hold:
Return true when s is valid; otherwise, return false.
isValid(s)
Example 1:
Input: s = "{}"
Output: true
Explanation:
The opening curly bracket is paired with the correct closing curly bracket.
Example 2:
Input: s = "{[()]}"
Output: true
Explanation:
Each nested pair is closed by the appropriate bracket in reverse opening order.
Example 3:
Input: s = "{(]}"
Output: false
Explanation:
The ( bracket is followed by ], which is not its matching closing bracket.
1 <= s.length <= 10^4s contains only bracket characters from ()[]{}