Company: Rahi Platform Technologies_3nov
Difficulty: medium
Valid Parentheses Problem Description Write a Java program that takes a string containing just the characters '(', ')', '{', '}', '[' , and ']', and determines if the input string is valid. An input string is valid if: The brackets must close in the correct order. Every opening bracket has a corresponding closing bracket of the same type. Examples Example 1: Input: s = "[]" Output: true Explanation: The brackets are of the same type and close in the correct order. Example 2: Input: s = "{]" Output: false Explanation: The opening bracket '{' is not closed by a matching '}'.