Broadcom interview question

Generate numbers from a linked list randomly