Word Ladder: Use HashSet to record visited words. Modify comment accordingly.