Domanda di colloquio di TikTok

both rounds asked one programming problem about trees, fairly easy