code: public TreeMap<Character, ? extends TrieNode> getChildrenMap() {
      TreeMap<Character, TrieNode> map = new TreeMap<>();
      getChildren().forEach(x -> map.put(x.getChar(), x));
      return map;
    }
docs: Gets children map.
  
  @return the children map