GitHub interview question

reverse a linked list in code