Salesforce Interview Question

Convert a binary tree into a linked list