49. Validate Bracket Sequence - medium Coding Challenge