add solution for flatten_binary_tree_to_linked list