LinkedIn Interview Question

Curve coding question Tree question without knowing access to the node