Intel Corporation interview question

traverse binary tree