LinkedIn interview question

Reverse a linked list, Complicated graph question