Booz Allen Hamilton Interview Question

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