Broadcom Interview Question

Reverse a linked list in Python