Flatten Binary Tree to Linked List by swapping