If current subtree already exists in hash table . [ Note that size of a serialized tree with single node is 3 as it has two marker nodes .
if ( s . length > 3 && subtrees . has ( s ) ) return " " ; subtrees . add ( s ) ; return s ; }