Amazon Interview Question

3 sum, Reverse a linked list