248 leetcode java different ways to add parentheses – hard