word break II using DP iterative