Updated WordBreak DP solution.