LinkedIn interview question

Curve coding question Tree question without knowing access to the node