sereja bracket sequence s1s2sn word stre s length n consist character Sereja need answer m query describe integer liri 1lirin the answer ith query length maximum correct bracket subsequence sequence slisli1sri help Sereja answer queriesyou find definition subsequence correct bracket sequence note