basic version
use dynamic programming to sol the word break
add thoughts for performing the DP
sol of q139