First Student Interview Question

Reverse a linked list to write a code