Solved binary tree inorder traversal problem.