First wack at the solution to the word chain problem.