Write a function to check if a given string is valid according to the rules of a balanced parentheses sequence
HardProblem Statement
Write a function to check if a given string is valid according to the rules of a balanced parentheses sequence
Sample Input
"({[]})"Sample Output
true
Limits
Time: 2s · Memory: 256 MB