//Assume target word is already set, write an algorithm to check for chain from input1 to target word.
private boolean checkForChain(String input1)
{



}


This Coding Interview Question is available with an answer in the following programming languages :