Console based program to link two words of the same length through successors that differ by one letter each