JPMorganChase interview question

How do you reverse a linkedlist