Applebee's Interview Question

how to reverse linked list