Applebee's interview question

how to reverse linked list