Oracle interview question

How do you reverse a linkedlist in O(N) ?