NetApp interview question

reverse a linked list. some sql query