Google Interview Question

Write an algorithm to reverse a linked list