Bazaarvoice interview question

Implement a specific tree traversal algorithm