String practice 2
Brackets are used in many places, and in this task your job is to make sure the square brackets are syntactically correct. The rules are very simple, matching pairs of brackets are considered valid.
E.g. the following brackets are valid:
 [ [ ] ] [ ]
The following is invalid:
Each line will contain a single test case. Each case will contain no more than 200 characters.
There will be multiple test cases, until EOF in the end.
The output should contain the same number of lines as input, each line either
No, indicating whether the sequence is valid.
 [ [ ] ] [ ]  ] ][
Yes Yes No No