rewrite leetcode inorder traversal iterative one stack