Question d’entretien chez Samsung Electronics

write a program to reverse a link list.