Junior — Senior
Verification of the correctness of the bracket string
livecode
Task condition
Given a string consisting solely of the characters '(', ')', '{', '}', '[' and ']'. It is necessary to check whether it forms a correct bracket sequence. The sequence is considered correct if each opening bracket has a corresponding closing bracket of the same type and all brackets are closed in the correct order.