Reverse Doubly Linked List Leetcode Problem