Qualcomm Interview Question

Flattern a binary tree to LInked List