For example if the parenthesis/brackets is matching in the following:
({}) (()){}() ()
and so on but if the parenthesis/brackets is not mat
The algorithm:
Now, parentheses are balanced for two conditions: