Pergunta de entrevista da empresa Shyplite

binary tree question from frontend to backend