Amazon Interview Question

Reverse a linker list