Bloomberg Interview Question

Flatten a double linked list into array