NVIDIA Interview Question

reverse a linked list in python