Maximum Balanced Bracket Sequence - Coding problem | OneNoughtOne