CustomerXPs interview question

they asked a question on binary trees which was a bit easy.