AppFolio Interview Question

how to reverse a linked list?