code: public static BiFunction<CharTrie, CharTrie, CharTrie> reducer(BiFunction<TrieNode, TrieNode, TreeMap<Character, Long>> fn) {
      return (left, right) -> left.reduce(right, fn);
    }
docs: Reducer bi function.
  
  @param fn the fn
  @return the bi function