Motorola Solutions Interview Question

Tree related question, cannot remember the exact problem