Amazon interview question

copy a binary tree and two behavior questions