Flatten Doubly Linked List Leetcode Problem