Amazon interview question

Convert Binary Tree into array