adding the iteratively solution of Symmetric Tree