Create two hash sets and store elements both BSTs in them .
s1 = { } NEW_LINE s2 = { } NEW_LINE s = s1 NEW_LINE insertToHash ( root1 ) NEW_LINE s1 = s NEW_LINE s = s2 NEW_LINE insertToHash ( root2 ) NEW_LINE s2 = s NEW_LINE