Given a string s
containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
An input string is valid if:
Input: s = "()" Output: true
Input: s = "()[]{}" Output: true
Input: s = "(]" Output: false
Input: s = "([])" Output: true
s
consists of parentheses only: '()[]{}'.Test Case 1
Input : s = "()"
Expected Output : true
Test Case 2
Input : s = "()[]{}"
Expected Output : true
Test Case 3
Input : s = "(]"
Expected Output : false
Test Case 4
Input : s = "([])"
Expected Output : true