Solution for the word break problem

Question: https://oj.leetcode.com/problems/word-break/
Used dynamic programming