

Given a string s containing only the characters (, ), {, }, [ and ], determine whether the brackets are balanced and properly nested. Return True if every opening bracket has a matching closing bracket in the correct order; otherwise return False.
Example 1:
Input: s = "()[]{}"
Output: True
Explanation: Every bracket is matched and closed in the correct order.
Example 2:
Input: s = "([)]"
Output: False
Explanation: The brackets are balanced in count but not properly nested.
Example 3:
Input: s = "{[()]}"
Output: True
Explanation: Each nested opening bracket is closed by the correct type.
1 <= len(s) <= 10^5s contains only (, ), {, }, [ and ]Given a string s containing only the characters (, ), {, }, [ and ], determine whether the brackets are balanced and properly nested. Return True if every opening bracket has a matching closing bracket in the correct order; otherwise return False.
Example 1:
Input: s = "()[]{}"
Output: True
Explanation: Every bracket is matched and closed in the correct order.
Example 2:
Input: s = "([)]"
Output: False
Explanation: The brackets are balanced in count but not properly nested.
Example 3:
Input: s = "{[()]}"
Output: True
Explanation: Each nested opening bracket is closed by the correct type.
1 <= len(s) <= 10^5s contains only (, ), {, }, [ and ]