Code for problem "Flatten Binary Tree to Linked List".
TreeNode class.