Flatten Doubly Linked List Leetcode