leetcode pre order traversal