Broadcom interview question

How do reverse a linked list