Problem 1141: Brackets Sequence. WA on 05/26/2014.