Solved Symmetric Tree problem