Microsoft interview question

write iterator to a binary tree