correction of Word Ladder
cpp implementation with Time Limit Exceeded of WordLadder