Meta Interview Question

show right side elements of the tree