This is basically an inorder traversal and we preprocess the arrays . child [ ] and sibling [ ] in " subset " with the tree structure using this function .
function preprocess ( node , subsets ) { if ( node == null ) return ;