CDAP interview question

Traverse a binary tree in C++.