Added solution to symmetric tree and build tree.