Ubisoft Interview Question

write an algo to sum all the elements in a binary search tree