Question d’entretien chez Keysight Technologies

Write a code to reverse a linked list.