LeetCode

Score of Parentheses

Click here for an explanation.