TikTok interview question

sum up the nodes in binary tree.