solve binary tree inorder traversal