Create flattenBinaryTreeToLinkedList