Healofy interview question

Convert Binary Tree into Array Representation. Tree can also be not completed binary tree.