reverse words in a string
binary tree preorder traversal