Flip CX interview question

Binary Tree question