UKG interview question

How to parse through a binary tree