Pergunta de entrevista da empresa LinkedIn

Curve coding question Tree question without knowing access to the node