Given an expression string exp , write a program to examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in exp.
Examples:
[()]{}{()()} : true
[(]) : false
For each type of opening bracket there exits a closing bracket of the same type.