Intel Corporation Interview Question

traverse binary tree