First crack at the word chain problem.