Given a string containing brackets [], braces {}, parentheses (),
or any combination thereof, verify that any and all pairs are matched and nested correctly.
sed -Enf parentheses.sed parentheses.txttrue
true
true
false
false
true
false
true
false