LeetCode
Word Break
Click
here
for an explanation.