Pergunta de entrevista da empresa Everpure

binary tree and multithreading question