If the node of ch is not present in map make a new node and add in map
if ( temp . children . get ( ch ) == null ) { temp . children . set ( ch , new TrieNode ( ch ) ) ; } temp = temp . children . get ( ch ) ; temp . visited ++ ; } }