Arista Networks interview question

Sum up all elements in a binary tree