Amazon Interview Question

Convert Binary Tree into array