Booz Allen Hamilton interview question

Write a function to traverse a binary tree and add up all the values.