Question d’entretien chez Booz Allen Hamilton

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