Accenture interview question

Binary Tree