Broadcom interview question

1. Reverse a Linked list