solve Symmetric Tree