Cisco Interview Question

Tree traversal. Write a method to output data in binary tree