Update Word Ladder II.java