rewrite leetcode word break i ii