solve same tree, symmetric tree and validate binary search tree