Symmetric tree solution.