give balanced parenthese string s return score stringthe score balanced parenthese string base follow rule score 1ab score A B A b balance parenthese stringsA score 2 a a balanced parenthese stre Example 1input s output 1example 2input s output 2example 3input s output 2 constraints2 slength 50 consist s balanced parenthese string