solve decode-ways flatten-binary-tree-to-linked-list