i dont want anybody to solve this problem for me ,, i jus want you guys to help me understanding the problem,, i didnt really get which sequence is valid or not,,How should i start solving the problem etc,,any hints regarding member functions n data members!!

Correct Sequence of brackets is always of primary importance both for written programs and mathematical expressions. By correct sequence we mean that for every opening bracket there is a closing bracket. The problem is to write a program that takes a random sized (size max 15) input of brackets from user, as a string, and can validate the sequence for e.g.

{([]{()})} valid

{[]}(} invalid

[]{{{} invalid

(((}))) invalid

{{{}}}} invalid

Reminder:

• Use stack to solve the problem.

• Use Stack class in some other class that uses stack to validate the sequence.