LeetCode
Different Ways to Add Parentheses
Click
here
for an explanation.