MSCI Interview Question

write a code to reverse a linked list?