Bloomberg Interview Question

Flatten a singly linked list