SortWords.java: Task completed