Given a string s containing only the characters (, ), {, }, [ and ], determine whether the brackets are valid:
Example 1
Input: s = "()[]{}"
Output: true
Example 2
Input: s = "(]"
Output: false
Example 3
Input: s = "([{}])"
Output: true
Constraints
1 <= s.length <= 10000Input
s = "()[]{}"Expected
true
6 hidden tests run on submit