Motorola Solutions interview question

Tree related question, cannot remember the exact problem