CDAP Interview Question

Traverse a binary tree in C++.