Dynamic Programming Word Hunt