Valid Parentheses View at LeetCode example 1: Input: s = "()[]{}" Output: true example 2: Input: s = "(]" Output: false