Capgemini Engineering Interview Question

write a code to reverse a link list.