LeetCode
Sum of Subsequence Widths
Click
here
for an explanation.