Convert Doubly Linked List to Array I
Start at the head and follow next pointers, copying each value into an array until the cursor runs off the end.
Start at the head and follow next pointers, copying each value into an array until the cursor runs off the end.