Qualcomm interview question

Flattern a binary tree to LInked List