Pergunta de entrevista da empresa TikTok

both rounds asked one programming problem about trees, fairly easy