Question d’entretien chez Semgrep

How would you reverse a linked list?