Valid Bracket Sequence With At Most One Swap

Company: Microsoft

Difficulty: medium