Trifacta Interview Question

They asked several questions about Java and ask me to write algorithm to reverse linked list.