Question d’entretien chez Mogo (Canada)

How would you optimally reverse a linked list?