Turn a linked list into its equivalent array representation.
Linked list.
Array version of the linked list.
Turn a linked list into its equivalent array representation.