solve same tree without compile :)