Broadcom Interview Question

Generate numbers from a linked list randomly