TikTok interview question

Binary tree question really classical