hi, i have written a parenthesis program where you can write a sequence of parenthesis for example {{[()]}} and the program determines if that sequence is valid or not.
these are the rules;
* Square brackets [ ] can contain only [ ] and ( ) brackets.
* Curly braces { } can contain { }, [ ] and ( ) brackets```. i have tested it and it works for the test cases but when i put in [[{()}]] it says valid even tho it is supposed to be invalid so i dont really know what is wrong.